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.
Ok, So I have this simple code: String s = "9"; int i = 9; int k = i + Integer.intValue(s); ======== Now shouldn't Integer.intValue convert String s to a primitive so it can add it to i? Instead Java finds java.lang.String instead of int. What's the logic behind this?