JAVA经常使用的一些技巧(提升程序效率)

1.当须要首字母大写时web String str= "HbcdefggGG"; byte[] bytes = str.getBytes(); //ASCII码中,a-z对应97-122,而A-Z对应65-90; if (bytes[0] >= 97) { bytes[0] -= 32; } 点评:此方法能够节
相关文章
相关标签/搜索