Character 中的code point

code point 就是unicode编码即那个字符的16进制编码。

 

NumericValue 不太清楚,但是和code point无关。

 

package com.snail.character;

public class CodePointTest {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Character A = new Character('A');
        System.out.println("Returns the int value that the specified Unicode character represents: "+Character.getNumericValue(A));
       
        System.out.println("***"+Character.codePointBefore("A",1));
       
    }

}

你可能感兴趣的:(character)