1: // @author Frank M. Carrano, Timothy M. Henry
2: // @version 5.0
3: public void enqueue(T newEntry)
4: {
5: checkIntegrity();
6: ensureCapacity();
7: backIndex = (backIndex + 1) % queue.length;
8: queue[backIndex] = newEntry;
9: } // end enqueue