List
One of the collection types defined in the java.util package is List.
Listis an interface.Listguarantees insertion-order; the order you add elements into a list is the same order that you will iterate through them.Listallows duplicate elements. (Some collections do not.)
Since List is an interface, we instantiate an implementing class.
ArrayListis a class that implementsList.
List<String> myList = new ArrayList<>();
LinkedListandVectorare other classes that implementList.
