//2x vector containing arrays
String[] row1 = {"a", "b", "c"};
String[] row2 = {"d", "e", "f"};
Vector rows = new Vector();
rows.addElement(row1);
rows.addElement(row2);
//2x vector containing vectors
Vector row1vector = new Vector();
row1vector.addElement("a");
row1vector.addElement("b");
row1vector.addElement("c");
Vector row2vector = new Vector();
row2vector.addElement("d");
row2vector.addElement("e");
row2vector.addElement("f");
Vector vectorrows = new Vector();
vectorrows.addElement(row1vector);
vectorrows.addElement(row2vector);
-- Curt Springer, Team ND
At 11:24 AM 7/7/99 -0400, [EMAIL PROTECTED] wrote:
>Does anyone know how to create a multidimensional vector?
>
>I have the need for an array but do not know the size of the array when
>I need to create it, so I am using a vector to handle this (I actually
>know the number of columns but not the number of rows).
>
>It would be nice if the vector could be multidimensional but I could not
>find any documentation on how to do this.
>
>Thanks,
> Rob
>_________________________________________________________________________
>
>For help in using, subscribing, and unsubscribing to the discussion
>forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
>
>For dire need help, email: [EMAIL PROTECTED]
>
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]