Your ConsoleReader class is somehow blocking or it might be faulty, the basic one should fix your problem.
Replace:
ConsoleReader console = new ConsoleReader(System.in);
with
Scanner console = new Scanner(System.in);
Also remember that you have to press enter after you've entered the number and that you have to enter it in the console, not in the applet window.
Edit: As the appletviewer is taking the focus you have to press in the console and then write to be able to give an input. (This might work with your other console input class too)