Java ArrayList class in collections
Java ArrayList class in collections -- ArrayList class uses a dynamic array for storing the elements. It inherits AbstractList class and implements List interface in java. -- ArrayList class can allows random access because array works at the index basis. -- ArrayList is non synchronized class in java. -- ArrayList class maintains insertion order to data -- ArrayList can contain duplicate elements. -- manipulation is slow in ArrayList class because a lot of shifting needs to operation with data. ArrayList class have three Constructor. 1) ArrayList ( ) 2) ArrayList ( Collection c ) 3) ArrayList ( int capacity ) Some Methods of ArrayList class 1) void add ( int index, Object element ) - insert the specified element at the specified position index in a list. 2) boo...