jQuery in Action, 2nd edition
The moose likes Beginning Java and the fly likes octal and hexa representation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: octal and hexa representation
 
Similar Threads
Hexa Or Octal values In Float
is hexadecimal/octal conversion req. for the exam?
integer number too large
Random phone number generator
K&B Number system questions doubt