posted 23 years ago
Once again I come to JavaRanch for help. :-)
Ok, I have created a vector in class.
But I can't seem to get any of the methods in my vector to work.
Vector v = new Vector();
int z=0;
z = v.elementAt(1).weirdMethod();
Assume weirdMethod works fine and returns an int.
I get a compiler error: unresolved symbol at, z= v.elementAt(1).weirdMethod();
It seems from this that you would get compiler errors all the time, since the Vector wouldn't know what kind of objects are put in, therefore couldn;t find the method.
::Sigh::
I think I am missing something pretty basic here, I seem to always leave my questions short, so don't be afriad to ask for more information.