Source of 11.12.java


  1: public void enqueue(T newEntry)
  2: {
  3:    checkInitialization();
  4:    ensureCapacity();
  5:    backIndex = (backIndex + 1) % queue.length;
  6:    queue[backIndex] = newEntry;
  7: } // end enqueue
  8: // Version 4.0