0

Simple way to read user input without importing scanner class.

29th Sep 2017, 5:33 PM
Firoz Pasha
Firoz Pasha - avatar
2 Answers
+ 5
All other methods of taking input are just as difficult, if not more difficult than the Scanner. But, you can use: * Console class * Buffered Reader class * Swing library (JOption Pane) Since I'm lazy, here's the code for them: https://stackoverflow.com/questions/14898902/different-ways-to-get-inputs-in-java *JOptionPane will not work on CodePlayground*
29th Sep 2017, 5:48 PM
Rrestoring faith
Rrestoring faith - avatar
+ 1
In order to read output, you will need to import the scanner class.
29th Sep 2017, 5:35 PM
Dillion Piazza
Dillion  Piazza - avatar