Java String Capitalize capitalizeString(String string)

Here you can find the source of capitalizeString(String string)

Description

capitalize String

License

Open Source License

Declaration

public static String capitalizeString(String string) 

Method Source Code

//package com.java2s;

public class Main {
    public static String capitalizeString(String string) {
        char[] chars = string.toCharArray();
        chars[0] = Character.toUpperCase(chars[0]);
        return String.valueOf(chars);
    }//ww  w .j a v a2 s  .c  om
}

Related

  1. capitalizePropertyName(String s)
  2. capitalizeString(final String in)
  3. capitalizeString(String aString)
  4. capitalizeString(String str)
  5. capitalizeString(String string)
  6. capitalizeString(String string)
  7. capitalizeString(String text, boolean replaceUnderscore)
  8. capitalizeString(String toCapitalize)
  9. capitalizeToUpper(String line)