Hi Jason
I am glad that my answers helped you. But again this question
Please try this code
public class WrapperTest {
public static void main(
String args[]) {
Integer ten1 = new Integer(10);
int ten2 = 10;
System.out.println("Wrapper :- " + ten1);
System.out.println("Primitive :- " + ten2);
}
}
What we discussed in your other posting was about using + operator for adding a Integer wrapper class object and a int primitive variable which will create a problem. If you just want to use a Wrapper class object in System.out.println(), it will work as the code demonstrates.
Thanks
ARS Kumar.
[This message has been edited by ARS Kumar (edited June 17, 2000).]