File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Hexidecimal and octal question!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Hexidecimal and octal question!!" Watch "Hexidecimal and octal question!!" New topic

Hexidecimal and octal question!!

Edmund Chiang

Joined: Apr 11, 2001
Posts: 17
How do you convert a decimal to hexidecimal or octal?
How do you convert a hexidecimal or octal back to decimal?
Example: how do you convert decimal 100?
Thanks in Advance!
Art Metzer
Ranch Hand

Joined: Oct 31, 2000
Posts: 241


Notice that when converting from octal to decimal, you don't need the leading zero in the String. Similarly, conversion from hexadecimal to decimal does not require (or allow) a leading "0X" or "0x".
I agree. Here's the link:
subject: Hexidecimal and octal question!!
jQuery in Action, 3rd edition