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); }