Creating an ArrayList Object
In this lesson, you'll learn how to create an ArrayList object in Java.
We'll cover the following...
Let’s practically use an ArrayList Object in our code. The ArrayList is a class in Java and to use a class’s functionality we have to instantiate it i.e. to construct its object.
To construct an object of a class we use a constructor. Before we jump to the constructor part let’s discuss a bit about the wrapper classes. ...