Java可以在数字文字中的两位数之间使用下划线。
int x1 = 2_969; // Underscore in deciaml format int x2 = 1__929; // Multiple consecutive underscores /** 来 自 时代Java公众号 **/ int x3 = 03_661; // Underscore in octal literal int x4 = 0b0111_1011_0001; // Underscore in binary literal int x5 = 0x7_B_1; // Underscores in hexadecimal literal byte b1 = 2_2_7; // Underscores in decimal format double d1 = 1_969.09_19; // Underscores in double literal