This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Conversion of binary to Hex and Octal State Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Conversion of binary to Hex and Octal State" Watch "Conversion of binary to Hex and Octal State" New topic
Author

Conversion of binary to Hex and Octal State

Shiraz Bhagwagar
Greenhorn

Joined: Mar 28, 2001
Posts: 27
How does one convert from decimal to hexadecimal/octal. I know about converting from decimal to binary.
Also how do you deal with the bitwise operators in a simple manner. Exam questions contain long iterations which are time consuming. Any shortcuts
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi Shiraz,
I've got some notes on Binary/Octal/Decimal/Hex conversions at http://www.janeg.ca/scjp/oper/binhex.html
Hope they help.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform


Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Conversion of binary to Hex and Octal State
 
Similar Threads
Octal
Hex and Octal
do java Api provide methods to convert number from binary to decimal or HEXA ,Octal
int length=343 is 343 an integer literal or decimal literal???
decimal ->octal & decimal ->hexadecimal