I'm recently studying for the
java 2 cert from sun and I keep coming across a question like this:
The question is, what is the printed result. My question is this, is there a quick way to convert numbers to their binary representations such as 12 = 1100 and 13 = 1101. This is really the only thing I haven't been able to find an answer to. I'd like to know a quick way so I don't spend 1/2 hour on one question trying to calculate a binary representation of a number.
Thanks!
Kevin
[HENRY: Added code tags]
[ October 24, 2006: Message edited by: Henry Wong ]