Question: Scanner input = new Scanner(System.in); System.out.print(Enter your name ); String name = input.next(); System.out.println(name); If the user enters James Gosling when the code above runs,

Scanner input = new Scanner(System.in); System.out.print("Enter your name "); String name = input.next(); System.out.println(name); If the user enters James Gosling when the code above runs, what is printed? O Gosling Progam faults James Gosling James
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
