Example 3: Accessing Elements from an ArrayList This example shows: The use of the isEmpty () method to check if an ArrayList is empty. The use of the size () method to find the size of an ArrayList.