在unicode码中,汉字的范围是
class TestCh{
public static void main(String[] args){
Integer ch = 0x4e00;
Integer ch1 =0x9fa5;
System.out.println(ch1.intValue() +" " + ch.intValue());
}
}
运行结果:
40869 19968
class TestCh{
public static void main(String[] args){
Integer ch = 0x4e00;
Integer ch1 =0x9fa5;
System.out.println(ch1.intValue() +" " + ch.intValue());
}
}
运行结果:
40869 19968
本文通过一个简单的Java程序示例介绍了Unicode编码中汉字的范围,从4E00到9FA5,并展示了如何使用Java代码打印这一范围。
4万+

被折叠的 条评论
为什么被折叠?



