private static String getMethodName(String fildeName){byte[] items = fildeName.getBytes();
items[0] = (byte)((char)items[0]-'a'+'A');
return new String(items);
}
本文介绍如何使用 Java 中的 private static 方法将字符串中字符的 ASCII 值进行转换,通过字节数组操作实现字符的大小写转换。
private static String getMethodName(String fildeName){
1084
1058

被折叠的 条评论
为什么被折叠?