Importing the Library
Before you can use an ArrayList, you must first import the necessary library.
Creating a Generic ArrayList
Generic ArrayList is an ArrayList with a type; no other type is allowed to be inserted into the ArrayList.
Example of this would be:
ArrayList<type> listName = new ArrayList<type>();
ArrayList<String> myArrayList = new ArrayList<String>();