public Iterator<JsonElement> iterator(){
  return elements.iterator();
}

public Iterator < JsonElement > iterator ( ) { return elements . iterator ( ) ; }
returns an iterator to navigate the elements of the array . since the array is an ordered list , the iterator navigates the elements in the order they were inserted .
