1.First you creating the arraylist reference name action like ;
ArrayList action ;
2.In jdk1.5 or higher it will be accepted as ArrayList <string[]>
reference name ;
3.In jdk1.4 or lower it will be accepted as ArrayList
reference name ;
4.Then you specified the access specifiers namely,
a.public
b.private
c.protected
5.public can be accessed in any where.
6.private is accessed within the class.
7.protected is accessed within the class and different package subclasses.
8.Then the reference it will be assigned in
action = new ArrayList<String[]>();
9.In jvm new keyword will allocate memory in runtime for the object.
10.You should not assigned the value where as declared ,beacause you are asking without fixed size.
11.finally you can be use the add() method in arraylist.
12.Then use like action.add(new string[how much you need])
.
13.it will allocate the specific memory area in heap.