That all depends on what kind of user input you want.
If you are after text commands you could look at something like
String inPut;
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
inPut = br.readLine();
If you are making a GUI then you have to look at Swing and AWT for
graphical input, then look at EventHandlers for swing and awt.