Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Lloyd Alvarez   on Feb 12 In Java Category.

  
Question Answered By: Abana Cohen   on Feb 12

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.

Share: 

 
 
Didn't find what you were looking for? Find more on How would i get user input a an application? Or get search suggestion and latest updates.


Tagged: