code: @Override
    public int last()
    {
      if (isEmpty()) {
        throw new NoSuchElementException();
      }
      int max = 0;
      for (int element : cells) {
        if (max < element) {
          max = element;
        }
      }
      return max;
    }
docs: {@inheritDoc}