//把字符串首字母转换为大写 //author: aerchi@gmail.com public static String UpStr(String str) { return str.replaceFirst(str.substring(0, 1),str.substring(0, 1).toUpperCase()) ; }