Aim : Create a 2 dimensional array data structure @ runtime.
Premise : New to
Java!
What I tried :
int i=0;
Vector Correlation;
Correlation = new Vector();
while (i < NRows)
{
Correlation.addElement(new Vector());
i++;
}
((Vector)Correlation.get(0)).add("10"); //Correlation[0][0]=10
((Vector)Correlation.get(0)).add("5"); //Correlation[0][1]=5
Question 1 : Is there another(less painful) way I can simulate a flexible, m-dimensional array @ runtime.
Question 2 : Am I using the right way to access the Vector of Vectors in Correlation