Question: how can I possibly add a value to a 2 dimensional dynamic arrays?

```
String emp[][] = {
{"001","Superman","Manda","123-1233","02-14-1970","Male","Manager","20,000","Regular"},
{"002","Batman","Manda","33-1233","07-14-2007","Male","Clerk","20,000","Regular"},
};

```

I try this code

```
int arrLen = emp.lenght;
emp[arrLen][0] = "003"
emp[arrLen][1] = "Superwoman"
emp[arrLen][2] = "QC"
emp[arrLen][3] = "123-1233"
emp[arrLen][4] = "03-12-2012"
emp[arrLen][5] = "Female"
emp[arrLen][6] = "Supervisor"
emp[arrLen][7] = "10,000"
emp[arrLen][8] = "Regular"

```

but it doesnt work

can anyone help me?

thanks

Answer: 
Java arrays have fixed length. If you want resizable array use [ArrayList](http://docs.oracle.com/javase/6/docs/api/java/util/ArrayList.html).

Example:

```
ArrayList<String[]> list = new ArrayList<String[]>();
list.add(new String[]{"Superman","Manda","..."});
list.add(new String[]{"Superwoman","Manda","..."});

```
Array objects are of fixed size. You can allocate a new, larger `String[][]` object and move the subarrays over to it -- i.e.,

```
String[][] tmp = new String[emp.length + 1][];
for (int i=0; i<emp.length; ++i)
   tmp[i] = emp[i];
emp = tmp;

```

After this, there's an empty spot at the end of your main array. Fill it with

```
emp[emp.length-1] = new String[] {"003", ...};

```