Question: D ) exception handler 3 ) What is output given the user input below? > thorin fili kili System.out.print ( Enter info: )

D) exception handler
3) What is output given the user input below?
>thorin fili kili
System.out.print ("Enter info: ");
Scanner keyboard = new Scanner(System.in);
String info= keyboard.nextLine();
Scanner inputScnr = new Scanner(info);
int iteml= inputScnr.nextInt();
String item2= inputScnr.next();
String item3= inputScnr.next();
System.out.println(item1+""+item2+""+item1);
A) thorin thorin thorin
C) thorin fili kili
B) kili fili thorin
D) nputMismatchException

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!