It's not a secret anymore!
The moose likes Beginning Java and the fly likes octal and hexa representation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "octal and hexa representation" Watch "octal and hexa representation" New topic
Author

octal and hexa representation

Argm Mastoi
Ranch Hand

Joined: Oct 16, 2001
Posts: 35
Hi guys,
Why do we need to use octal numbers' and hexa numbers' representation in java?
not clear with their usage and assignment too.
sabbir kazi
Ranch Hand

Joined: Feb 03, 2001
Posts: 62
You may use the following syntax:
String DectoOct = Integer.toOctalString(Integer.parseInt(decimal));
String DectoHex = Integer.toHexString(Integer.parseInt(decimal));
 
Have you checked out Aspose?
 
subject: octal and hexa representation
 
It's not a secret anymore!