Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

octal and hexa representation

 
Argm Mastoi
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may use the following syntax:
String DectoOct = Integer.toOctalString(Integer.parseInt(decimal));
String DectoHex = Integer.toHexString(Integer.parseInt(decimal));
 
CLUCK LIKE A CHICKEN! Now look at this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!