isEmpty() Method : Java.util.ArrayList


Declaration :

Explanation :

Purpose Method returns true if this list contains no elements
Parameters NA
Return Value True if this list contains no elements else false
Exception NA

Example

The following example shows the usage of java.util.Arraylist.isEmpty() method.

Output :