Java String Capitalize capitalize(String value)

Here you can find the source of capitalize(String value)

Description

Capitalize.

License

Open Source License

Parameter

Parameter Description
value the value

Return

the string

Declaration

public static String capitalize(String value) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*from  w ww .  j  a va 2 s  .  c o m*/
     * Capitalize.
     *
     * @param value the value
     * @return the string
     */
    public static String capitalize(String value) {
        if (value == null) {
            return value;
        }
        return value.substring(0, 1).toUpperCase() + value.substring(1);
    }
}

Related

  1. capitalize(String token)
  2. Capitalize(String val)
  3. capitalize(String value)
  4. capitalize(String value)
  5. capitalize(String value)
  6. capitalize(String var)
  7. capitalize(String word)
  8. capitalize(String word)
  9. capitalize(String word)