java charAt 用法
用法
String test = "abcd";
int a = test.charAt(0);//输出97
char b = test.charAt(0);//输出a
源码解释
Returns the char value at the specified index. An index ranges from 0 to length() - 1. The first char value of the sequence is at index 0, the next at index 1, and s
原创
2021-09-11 17:03:55 ·
286 阅读 ·
0 评论