What would be the effect if the code for the reverse method were changed to the following?

Question:

What would be the effect if the code for the reverse method were changed to the following?

public static void reverse (Scanner input) { if (input.hasNextLine () ) { // recursive case (nonempty file) reverse (input); // moved this line String line = input.nextLine () ; System.out.println (line);

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

Step by Step Answer:

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