Question: Given the method myQ8 below, public static void myQ8(String x) { boolean done = false; int i=7; String name = x; while (!done) { try

 Given the method myQ8 below, public static void myQ8(String x) {

Given the method myQ8 below, public static void myQ8(String x) { boolean done = false; int i=7; String name = x; while (!done) { try { char c = name.charAt(i); i=i-2; System.out.print("n="+C); done = true; } catch (IndexOutOfBoundsException exception) { System.out.print("E"); done=true; } i++; } System.out.print("W"+i); } what is printed after calling myQ8("Fall2020"); O a. W7 O b. n=OW6 O C. n=3Welcome 8 d. EW7

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 Databases Questions!