hi,
Vector.elementAt(i) returns an Object. Since you know the Object returned from the outerVector is also a Vector, you can just cast it to a Vector.
This is to make the Structure of Vector usable for all types in
java since everithing is of type Object (the primitive datatypes like int, long, double... are not)
// retrieve a Vector "stored" in a Vector
Vector aVector = (Vector)outerVector.elementAt(i);
// now aVector is a Object of type Vector. ATTENTION: if // elementAt(i) is not a Vector a ClassCastException occurs
to check the type:
Object obj = outerVector.elementAt(i);
if (obj instanceof Vector) {
Vector aVector = outerVector.elementAt(i);
} else {
// do something other here
}
k