300+ free video programming tutorials ― Learn for free!

Java Tutorial - #76 - ArrayList w/double brace Initialization

Category: Java - Author: Karl Hadwen

Home > Java > Java Tutorial - #76 - ArrayList w/double brace Initialization

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
https://www.facebook.com/cognitivesurge

Follow me on Twitter (Feel free to tweet me questions!)
https://twitter.com/karlhadwen