Check out example codes for "java make arraylist". It will help you in understanding the concepts better.

Code Example 1

//Create the Arraylist variable: . Replace the T with the type of 
//data to be stored in the list.
ArrayList<T> exampleList = new ArrayList<>();
//You can now perform operations on this ArrayList

Learn ReactJs, React Native from akashmittal.com