public class binarynum{ public static void main(String [] args){ int a = 0b0000_0011; int b = 1_1111_2222; System.out.println(a); //3 System.out.println(b);//111112222 } }
时间: 2024-10-21 12:12:51
public class binarynum{ public static void main(String [] args){ int a = 0b0000_0011; int b = 1_1111_2222; System.out.println(a); //3 System.out.println(b);//111112222 } }