This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Binary to Decimal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Binary to Decimal" Watch "Binary to Decimal" New topic

Binary to Decimal

Ira Jain
Ranch Hand

Joined: Sep 06, 2000
Posts: 70
I always get confused doing these type of questions and end up getting them wrong.Would somebody teach me how to do this conversion or direct me to some link which does the same?
Thanks in Advance
Stephen Pride
Ranch Hand

Joined: Sep 14, 2000
Posts: 121
Are you talking about left/right shift operations
(i.e., int j = -4, k = 3; j >>= k;)?

Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi Ira,
Here's a link to some notes I made to help me with the conversions Working with Binary, Hexadecimal and Octal numbers
Hope they help.

Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
Ira Jain
Ranch Hand

Joined: Sep 06, 2000
Posts: 70
Thanks a lot Jane for sending in the notes .They really explain the concept in a very simple manner.
Thanks a lot
jQuery in Action, 3rd edition
subject: Binary to Decimal
It's not a secret anymore!