0 votes
in JAVA by
How to get a string as user input from the console?

1 Answer

0 votes
by

How to get a string as user input from the console?

We have to instantiate an input reader class first. There are quite a few options available, some of which are BufferedReader, InputStreamReader Scanner.

Then the relative functionality of the class can be used. One of the most prevalently used is nextLine() of Scanner class.

Related questions

0 votes
asked Oct 21, 2020 in JAVA by rahuljain1
0 votes
asked Dec 16, 2020 in JAVA by SakshiSharma
...