+ 1
Hi , how to get variable from the user?what is the code?
5 Answers
+ 10
Taking user input using Scanner: https://code.sololearn.com/cWOQlJ1re4p8/?ref=app
Also you may use JOptionPane dialog box to take input.
+ 9
Which programming language?
+ 4
thank u all
+ 3
In addition to what Sham said, you can also use the BufferedReader, InputStreamReader, and Console classes to accomplish this as well.