Returns the next element in the iteration.
Returns the next element in the iteration.Calling this method repeatedly until the hasNext() method returns false will return each element in the underlying collection exactly once.
This method has a time complexity of O(1).