This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
65 in Hex: (6 * 16^1)+5 = 101 65 in Octal: (6 * 8^1)+5 = 53 HOWEVER: System.out.println(Integer.toHexString(65)+" Hex"); System.out.println(Integer.toOctalString(65)+" Oct"); prints: 41 Hex 101 Oct where I thought it would print out: 101 Hex 53 Oct First: How does the expected 101 get to the Octal value, and where did 41 come from? Did someone slip me some LSD? Have I been working too hard? Or is my JVM playing a practical joke on me? Thanks!