Given the following application, in which a user enters bone twice, what is the expected result? A.

Question:

Given the following application, in which a user enters bone twice, what is the expected result? 

image text in transcribed

A. The program completes after printing a message once.

B. The program completes after printing a message twice.

C. An IOException is thrown.

D. The program prints an exception because the format of the String on line v1 is invalid.

E. A NullPointerException is thrown since System.in may be unavailable.

F. None of the above as the code does not compile.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: