当前位置: 代码迷 >> J2SE >> codePointAt解决方法
  详细解决方案

codePointAt解决方法

热度:233   发布时间:2016-04-24 15:46:35.0
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));
}
}
  相关解决方案