package javase.com.xhe.test;/** * 测试二进制数字 * @author xhe * */public class TestBinaryNum { public static void main(String[] args) { int a = 0b0000_0000_0000_0000_0000_0000_0000_0011; int b = 1_2312_3131; System.out.println(a); //3 System.out.println(b); //123123131 }}