to get user input from command line

i want to run a menu driven programme. and i will be using switch statement for it. when i am running it from command line, how can i get the user input. ps
[170 byte] By [pallavisa] at [2007-11-26 18:59:53]
# 1
http://java.sun.com/docs/books/tutorial/essential/environment/cmdLineArgs.htmland/or: http://www.exampledepot.com/egs/java.io/ReadFromStdIn.html
prometheuzza at 2007-7-9 20:41:36 > top of Java-index,Java Essentials,Java Programming...
# 2
> i want to run a menu driven programme. and i will be> using switch statement for it. when i am running it> from command line, how can i get the user input. > psTake a look at the Scanner class.Kaj
kajbja at 2007-7-9 20:41:36 > top of Java-index,Java Essentials,Java Programming...