300+ free video programming tutorials ― Learn for free!
Category: Java - Author: Karl Hadwen
Did you find this video helpful? If so, why not subscribe!? ? http://bit.ly/CognitiveSurge
The best shared web hosting: https://www.bluehost.com/track/karlhadwen/
The best simple cloud hosting for developers: https://m.do.co/c/426ceabcea09
In this video I'm going to be showing you how to use the ArrayList within Java. Java ArrayList class uses a dynamic array for storing the elements. It extends AbstractList class and implements List interface. Java ArrayList class can contain duplicate elements. Java ArrayList class maintains insertion order. Java ArrayList class is non synchronized. Java ArrayList allows random access because array works at the index basis. In Java ArrayList class, manipulation is slow because a lot of shifting needs to be occurred if any element is removed from the array list.
There are alternatives, such as making an anonymous inner class with an instance initializer (also known as an "double brace initialization").
Like the Cognitive Surge Facebook page
Follow me on Twitter (Feel free to tweet me questions!)