8进制和16进制

 

 

 

 

 

public class Demo0 {
    public static void main(String[] args) {
        System.out.println(0b100);//2进制
        System.out.println(0100);//8进制
        System.out.println(100);//10进制
        System.out.println(0x100);//16进制
    }


}

 

posted on 2018-12-30 16:18  有钱淫  阅读(316)  评论(0)    收藏  举报