1: public boolean isEmpty() 2: { 3: return frontIndex == ((backIndex + 1) % queue.length); 4: } // end isEmpty 5: // Version 4.0