Here you can find the source of capitalizeFormat(String string)
public static String capitalizeFormat(String string)
//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); } }