`

java utils 慢慢整理

    博客分类:
  • java
阅读更多
/**
* 字符串首字母大写
* @param entryStr
* @return
* @throws Exception
*//*
private static String changeFirstStrUpcase(String entryStr) throws Exception {
byte[] items = entryStr.getBytes();
items[0] = (byte) ((char) items[0] - 'a' + 'A');
return new String(items);
}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics