code: public T pop() {
  		final int max = stack.size() - 1;
  		if (max < 0) {
  			throw new NoSuchElementException();
  		}
  		return stack.remove(max);
  	}
docs: Pops the value from the top of stack and returns it.
  @return The value has been popped.
  @author vvakame