use JOptionPane or Scanner for input. I found Scanner to be more useful.