Rather than using JOptionPane to input information into Java's runtime, you can use a BufferedReader to input information directly into command line.
Please visit http://www.tigertutorials.com for more tutorials on how to make websites, video games, and program in various computer languages.
On this page of the site you can watch the video online Using BufferedReader in Java with a duration of hours minute second in good quality, which was uploaded by the user TheTigerTutorials 13 November 2011, share the link with friends and acquaintances, this video has already been watched 18,204 times on youtube and it was liked by 30 viewers. Enjoy your viewing!