Skip to main content
gamedev.net
🔒 Locked

[java] display hex numbers?

Started by sushi-one Dec 24, 2004 at 4:21 AM 0 replies 550+ views
Original Post
sushi-one
sushi-one
System.out.println(in.readShort()); how can i make this display hex numbers to the output?
Hans-Petter Harveg
SamLowry
SamLowry
Since the Short class does not seem to have it (typical Java coherency...), you shall have to use Integer.toHexString().

Link

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.