@Override
        public void run() {
            int i = 1;
            while (i <= MAX) {
                if ( (amEven && (i % 2) == 0) || (!amEven && (i % 2) != 0) ) {
                    try {
                        q.put(new Integer(i));
                    }
                    catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                }

                ++i;
            }
        }