1: public T getFront() 2: { 3: checkInitialization(); 4: if (isEmpty()) 5: throw new EmptyQueueException(); 6: else 7: return queue[frontIndex]; 8: } // end getFront 9: // Version 4.0