An ArrayList is a resizable array implementation of the Listing interface. It permits all parts, together with null. It is part of the Java Collections Framework and is discovered within the java.util package deal.
There are a number of methods to test if an ArrayList is empty. A technique is to make use of the isEmpty() methodology. The isEmpty() methodology returns a boolean worth of true if the ArrayList is empty and false if it comprises a number of parts.