System.out.println(1 << 0);//1
System.out.println(1 << 1);//2
System.out.println(1 << 2);//4
System.out.println(1 << 3);//8
System.out.println(1 << 4);//16
java移位举例
最新推荐文章于 2022-03-29 17:49:31 发布
System.out.println(1 << 0);//1
System.out.println(1 << 1);//2
System.out.println(1 << 2);//4
System.out.println(1 << 3);//8
System.out.println(1 << 4);//16