theQueue.insert(scannerObject.nextInt());

Regards,
Chris