62,614
社区成员
发帖
与我相关
我的任务
分享
public class TestChar {
public static void main(String[] args) {
char a = 0;
char b = '\0';
System.out.println(a);
System.out.println(b);
System.out.println(a == b);
}
}
for (int i = 0; i < 100; i++) {
char c=(char) i;
System.out.println(i+":"+c);
}
运行一下看看 不是每个asxii码都有对应的