Computer Science, asked by shafaquekhan1858, 19 days ago

what is the syntax of input statement in java​

Answers

Answered by bendimohini6
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 jyotikhanna1983k
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