Question: 1.Write a Java statement that declares and creates an object input of the Scanner class and sets it to read from the keyboard. Start the
1.Write a Java statement that declares and creates an object input of the Scanner class and sets it to read from the keyboard. Start the declaration in the first column. Include whitespace only as necessary.
For this question, I am really not sure that the aswer between Scanner in = new Scanner(System.in); and Scanner input = new Scanner(System.in);
Which one is an answer and please briefly explain?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
