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

[ad_1]

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.

[ad_2]

solved Underscore not visible in Java numbers [closed]