jdk源码中String中的 codePointAt(int index) 方法作用:
返回字符串中 第 index 位字符的 ascii 编码
例如:
String string = "abcdefg";
int codePointAt = sb.codePointAt(0);
//codePointAt == 97
codePointAt == 97 引用a的 ascii 编码就是为97
标签:index,String,jdk,int,源码,codePointAt From: https://blog.51cto.com/u_13002884/5894593