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
Angela Poynton
Ranch Hand
Joined: Mar 02, 2000
Posts: 3143
posted
0
Are you importing java.util.Vector ? If not you'll need to, and make sure your classpath is pointing to JDK. Hope this helps.
Pounding at a thick stone wall won't move it, sometimes, you need to step back to see the way around.
Adrian Ferreira
Ranch Hand
Joined: May 29, 2000
Posts: 118
posted
0
Try this with corrections: The change is the include of first line and changing the class name.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.