JAVA实现二进制,十六进制输出
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(Integer.toBinaryString(320*1024));
System.out.println(Integer.toHexString(320*1024));
System.out.println(Integer.toHexString(320*1024+0x00018000));
}
}
posted on 2014-12-15 19:02 qingchen1984 阅读(1010) 评论(0) 收藏 举报
浙公网安备 33010602011771号