I
iherage
This is part of the code(JDK 1.5 ,windows xp Chinese(simplified))
....
Vector v=new Vector();
v.addElement(new Integer(7));
....
I got a warning.Because I am using a Chinese version,it perhaps means
in English its type is not checked while using the method addElement,so
it is not safe to use it.Why?Is not Integer an Object?And what is the
right way?
....
Vector v=new Vector();
v.addElement(new Integer(7));
....
I got a warning.Because I am using a Chinese version,it perhaps means
in English its type is not checked while using the method addElement,so
it is not safe to use it.Why?Is not Integer an Object?And what is the
right way?