when you add a 0 in front, it is refering to an octa (base8) value.
So 0123 is 83 in dec (base10)
To print out a number in octa. You can convert it to string using the following
String convertedString = Integer.toOctalString(0123);
System.out.println("The octa value is " + convertedString);
you can refer to https://www.javatpoint.com/java-decimal-to-octal for more information.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…