Question: 1. Keep stepping (10 or 20 times) through the program using step over and step into (remember to step over when you get to the
1. Keep stepping (10 or 20 times) through the program using step over and step into (remember to step over when you get to the println statement) Observe what is happening in the variables window, and observe what is getting executed each time you seem to "loop". Remember, stepping into means that you descend into the method. What type of method is methods (hint methodB calls itsel)? 2 Using the debugger, set the value of x to 0 before you enter methodB again, keep stepping into the method, observing what happens. When you have an idea what is happening, you can terminate the program in the debugger (Debugger > Finish Debugger Session). 3. Figure out how to fix the code so that it will print this resut Outpat 0 Debugger ConsoleDebugExample (run) run: 2 35 67 891e 3 45 6 7 8 9 18 45678910 5678910 6 7 8 9 18 7 8 918 8 9 18 9 10 10 BUILD SUCCESSFUL (total tine: e seconds) 18:38 ckage debugexample blic class Debugtxample ( public statie vold main(Stringl s) nethodA): public static vold nethodAco nethodb(L) System out-printin" public static int methods (int x)0 ); System-out.printf("X3d", 2 else ( return e return 0 methodb (xe)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
