Print an unsigned long in Java

Use Long.toUnsignedString:

System.out.println("Value of my unsigned long: " + Long.toUnsignedString(i));

Comments

Be the first to comment!