If you need to read in user input from the console then take a look at the Scanner class.
...