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) String line = input.nextLine (); System.out.println (line) ; // swapped order reverse (input); // swapped order

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

Step by Step Answer:

Related Book For  book-img-for-question

Building Java Programs A Back To Basics Approach

ISBN: 9780135471944

5th Edition

Authors: Stuart Reges, Marty Stepp

Question Posted: