Collections
Collections
List Interface
List <data-type> list1= new ArrayList();
List <data-type> list2 = new LinkedList();
The ArrayList class implements the List
interface. It uses a dynamic array to store the
duplicate element of different data types.