jQuery in Action, 3rd edition
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "octal and hexa representation" Watch "octal and hexa representation" New topic

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));
I agree. Here's the link: http://aspose.com/file-tools
subject: octal and hexa representation
It's not a secret anymore!