peek method

T peek()

Returns Top element of Stack

Implementation

T peek() {
    return first.value;
  }