public void enqueue(Locale loc) throws Exception {
        // Check for overflow.
        if (backPtr < CAPACITY-1) {
            backPtr = backPtr + 1;
            arr[backPtr] = loc;
        } else {
            Exception overflow = new Exception("Queue Overflow");
            throw overflow;
        }
    }