Wednesday, 24 July 2013

How capitalize first letter in string

char[] stringArray = myString.toCharArray();
stringArray[0] = Character.toUpperCase(stringArray[0]);
myString = new String(stringArray);