Here you can find the source of firstCharUpper(String myString)
public static String firstCharUpper(String myString)
//package com.java2s; //License from project: Open Source License public class Main { public static String firstCharUpper(String myString) { if (myString != null && myString.length() > 1) { char[] stringArray = myString.toCharArray(); stringArray[0] = Character.toUpperCase(stringArray[0]); myString = new String(stringArray); }/*from ww w .j av a 2 s . c om*/ return myString; } }