J
Joshua Cranmer
Richard said:Hi,
I've had the following code running on Java 1.6 happily for sometime and
only after someone tried to compile it with 1.4 did I discover my recurring
:-( school-boy error of saying intVar = new Object. I've changed the code so
that it now it says intVar = Integer.parseInt(stringStuff) but I was just
wondering why it ever worked. JAVAC "just knew" I wanted the .value()
instead of the object or is this really useful functionality that comes in
Java 1B![]()
Ever hear of autoboxing? int's and Integers can freely convert between
the other most of the time. (Came from 1.5)