char a = '5';
byte b = (byte)a;
System.out.println(b);为什么会输出53?
byte b = (byte)a;
System.out.println(b);为什么会输出53?
解决方案 »
- myeclipse 中 database explorer 建立不了新连接
- 各位大虾 求助啊:java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
- 将一个字符串算式转换为单个字符,并用这些字符串求这个式子的值
- 进来帮帮忙!谢谢
- Class 'org.springframework.orm.hibernate3.LocalSessionFactoryBean' not found
- struts 中怎样用checkbox?
- jsp连接SQL Server 2000的问题
- 请问哪儿能下载JDOM开发包及其API?
- struts中form获取string[]这样的数据,好象运行不太正常,各位来说说
- 用amd跑tomcat快还是用p4跑tomcat快
- springboot Bean '' of type [] is not eligible for getting processed by all
- 怎样学习框架会比较有效率,目前学习java
byte默认形式也是以10进制打印,
如果想看二进制,System.out.println(Integer.toBinaryString((int)b));
想看十六进制 System.out.printf("%x", b)
想看八进制 System.out.printf("%o", b);
等等