please consider this code: class vector1 { public static void main(String args[]) { Vector a = new Vector(); int i = 10; Integer Int = new Integer(i); a.addElement(Int);
System.out.println(a.elementAt(0)); } } I think this should compile but my compiler is complaining that"Class Vector not found". I am using jdk1.2.1. Could someone tell me if there is something wrong with the code or with the compiler. Thanks