[Solved] Underscore not visible in Java numbers [closed]


If you expect that

int intUnderscore = 1_23_456;
System.out.println("intUnderscore: " + intUnderscore);

prints

intUnderscore: 1_23_456

you misunderstod the purpose of the underscore. It is just syntactic sugare meant to make source code easier to read.

solved Underscore not visible in Java numbers [closed]