This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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));
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: octal and hexa representation
 
Similar Threads
integer number too large
Random phone number generator
K&B Number system questions doubt
is hexadecimal/octal conversion req. for the exam?
Hexa Or Octal values In Float