Source of 11.4.java


  1: public T getFront()
  2: {
  3:    if (isEmpty())
  4:       throw new EmptyQueueException();
  5:    else
  6:       return firstNode.getData();
  7: } // end getFront
  8: // Version 4.0
  9: