1//create an ArrayList
2 ArrayList<String> myList
3 = new ArrayList<String>();
4
5//some items to ArrayList
6myList.add("One");
7myList.add("Two");
8myList.add("Three");
9
10/*
11* To insert element at beginning of ArrayList
12* use add method of ArrayList class with index 0
13*/
14
15myList.add(0, "Zero");