ArrayList isEmpty() Method in Java with Examples
In Java, the isEmpty() method of ArrayList is used to check if an ArrayList is empty.Example 1: Here, we use the isEmpty() method to check whether an ArrayList of integers is empty.Java// Java program to demonstrate the use of isEmpty() // method with ArrayList of Integers import java.util.ArrayList