Basically, I want to create a 2-D array that grows in size at runtime. Could I do this using a vector in Java?

Would these be right then?

int [] [] x = new x [100] [100];

Vector x= new Vector();

To add elements into the array-

```
for i=0 to 99
   for j=0 to 99
   x.addElement(x[i] [j]);

```

essentially, it would be just the same like referencing any other object, only here, I've to specify the index numbers as well, right?

I'm a novice at Java. So I'd appreciate any help!