what is the syntax of input statement in java
Answers
Answered by
1
Answer:
The syntax for the Java Scanner class: Scanner input = new Scanner(System.in); int number = input. nextInt(); In this example, we created a variable called input that collects the next value the user inputs into the console.
Answered by
0
Answer:
The syntax for the Java Scanner class: Scanner input = new Scanner(System.in); int number = input. nextInt(); In this example, we created a variable called input that collects the next value the user inputs into the console.
Explanation:
Similar questions