File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 JavaScript Promises Essentials this week in the JavaScript forum!
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));
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: octal and hexa representation