code: private int incrementIndex(int index, int maxIndex) {
  		int newIndex = index + 1;
  		if (newIndex >= elements.length) {
  			newIndex = maxIndex;
  		}
  		return newIndex;
  	}
docs: Increment an index
  
  @param index Input index
  @param maxIndex Assigned value when capacity is reached
  @return Output index