Java String Capitalize capitalizeFormat(String string)

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

Description

capitalize Format

License

Open Source License

Declaration

public static String capitalizeFormat(String string) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String capitalizeFormat(String string) {
        final char ac[] = string.replace("_", " ").toCharArray();
        if ((ac[0] >= 'a') && (ac[0] <= 'z')) {
            ac[0] = (char) ((ac[0] + 65) - 97);
        }/*ww w. j  a va 2 s .  c  om*/
        return new String(ac);
    }
}

Related

  1. capitalizeD(String str, char[] delimiters)
  2. capitalizedArray(String[] sstr)
  3. capitalizedCase(CharSequence source, char... delimiters)
  4. capitalizedName(final String property)
  5. capitalizeFirst(CharSequence str)
  6. capitalizeFront(String str)
  7. capitalizeHeadingCharacter(final String value)
  8. capitalizeInitial(String str)
  9. capitalizeMessage(String message)