Which utility function is used to check the presence of elements in an ArrayList?
hasNext() is used for the presence of the next element in an ArrayList.