0
Simple way to read user input without importing scanner class.
2 ответов
+ 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*
+ 1
In order to read output, you will need to import the scanner class.