If this is for school are you required to use an IDE? If so why has not your instructor told you how to do console input?
For NetBeans
http://www.google.com/search?en&q=co...ments+netbeans. The PDF looks nice. Note the search terms, google fu.
In Eclipse:
Click on the down black arrow next to the green circle with white arrow pointing right.
Click on open run dialog. Select your application on the left. Click on the Arguments tab on the right menu systm. Enter what you want into the Program arguments.