What would be the output from the code in the previous exercise if the calls to hasNextLine

Question:

What would be the output from the code in the previous exercise if the calls to hasNextLine and nextLine were replaced by calls to hasNext and next, respectively?


Data from Previous Exercise

For the next several questions, consider a file called readme.txt that has the following contents:

6.7 This file has several input lines. 10 20 30 40 test

What would be the output from the following code when it is run on the readme.txt file?

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

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: