0
Please what is the syntax for getting input from user and storing it
3 Respostas
+ 11
Actually, there are many methods to get user-input including the java.util.Scanner class, I did post an answer to this question which can surely help you out with all those limitations with different IDEs.
https://www.sololearn.com/Discuss/597659/
+ 4
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.
0
Thanks