Can anyone tell me how to create a vector vector in java? ie How to make a vector store other vectors with int values
Tie this populates a vector with values from 1 to 4 q are directions N = North, S = South, East L =, O = West.
for (int i =0; i < aux; i ++) {
v[i] = (int) (Math.random() *4);
if(v[i] == 0){
N++;
System.out.println("N");}
if(v[i] == 1){
S++;
System.out.println("S");}
if(v[i] == 2){
L++;
System.out.println("L");}
if(v[i] == 3){
O++;
System.out.println("O");}
}
My goal is to store results in 4 other vectors