今天练习题为:
在Unicode表中的顺序位置是
public class Gess { //定义类
public static void main(String[] args) { //主方法
char word = 'd', word2 = '@'; //定义char型变量
int p = 23045, p2 = 45213; //定义int型变量
System.out.println("d在Unicode表中的顺序位置是:" + (int) word);
System.out.println("@在Unicode表中的顺序位置是:" + (int) word2);
System.out.println("Unicode表中的第23045位是:" + (char) p);
System.out.println("Unicode表中的第45213位是:" + (char) p2);
}
}
网友评论