淘先锋技术网

首页 1 2 3 4 5 6 7


private static String upChar(String str) {
char[] str2 = str.toCharArray();
if (str2[0] >= ‘a’ && str2[0] <= ‘z’) {
str2[0] = (char) (str2[0] - 32);
}
return new String(str2);
}