Take the following implementation of a array-based stack of chars for example:
public char peek() throws Underflow { if (!isEmpty()) { return stack[p