String oldStr = "helloKitty";
byte[] items = oldStr.getBytes();
items[0] = (byte)((char)items[0] - ( 'a' - 'A'));
String newStr = new String(items);
System.out.println("字符串" + oldStr + "首字母大写后,---》 " + newStr);//字符串helloKitty首字母大写后,---》 HelloKitty