In which module we cover how to take input from user. | Selenium Forum
M
Posted on 06/05/2016
now i watching video and now i'm on starting of module 7.

M
Replied on 20/07/2016

Reply sir plz..
In java how to take input from user.


M
Replied on 20/07/2016

One of the simplest ways is to use a Scanner object as follows:

Scanner reader = new Scanner(System.in); // Reading from System.in
System.out.println("Enter a number: ");
int n = reader.nextInt(); // Scans the next token of the input as an int.