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