How to Add an Item to an ArrayList, Step-By-Step
1. If you don't already have an Android project, create an Android project.
2. Create a List with ArrayList.
3. Open the MainActivity.java file and add the below line of code to the onCreate method.
myList.add("This is a new item in a List.");
4. Compile and test app!
Resources:
http://java67.blogspot.com/2012/12/how-to-create-and-initialize-list-arraylist-same-line.html