62,614
社区成员
发帖
与我相关
我的任务
分享
/**
*char占两个字符,但是为什么如下显示的只显示了八位,而且在ASICC表中排行第254的 þ 为什么会和 t 相等
*/
public class Test1{
public static void main(String[] args){
System.out.println(Integer.valueOf('þ'));
System.out.println(Integer.toBinaryString('þ'));
System.out.println(Integer.toBinaryString('t'));
System.out.println('þ' == 't');
}
}
254
11111110
1110100
false