SCJP 5.0
Originally posted by Kelvin Lim: Hi Deepesh, 101010 is 42 in binary: 0 x 2^0 = 0 1 x 2^1 = 1 0 x 2^2 = 0 1 x 2^3 = 8 0 x 2^4 = 0 1 x 2^5 = 32 1 + 8 + 32 = 42 Here's a concise intro to binary if you're unfamiliar with the notation: http://l3d.cs.colorado.edu/courses/CSCI1200-96/binary.html [ November 09, 2007: Message edited by: Kelvin Lim ]
Spot false dilemmas now, ask me how! (If you're not on the edge, you're taking up too much room.)