code: def next(self):
          
          if self.index < self.length:
              index = self.index
              self.index += 1
              return self.data[index]
          else:
              raise StopIteration()
docs: Returns the next element from the array.
  
          :return: the next array element object, wrapped as JavaObject if not null
          :rtype: JavaObject or None