codePointAt
Character类的codePointAt表示什么意思?
high-surrogate 是什么意思?
------解决方案--------------------public static int codePointAt(char[] a,int index)返回 char 数组的给定索引上的代码点,
下面这个程序说明它返回的是Unicode编码值
public class Ch
{
public static void main(String[] args)
{
char[] A = { 'c ', 'b ', 'd ', 'a '};
for(int i = 0; i < A.length; i++)
System.out.println( "代码点 : " + Character.codePointAt(A, i));
}
}