Question: Consider the Mystery method below: public static void Mystery(int p1, int p2) { System.out.println( p1 + & + p2); if (p1 != p2) {
Consider the Mystery method below: public static void Mystery(int p1, int p2) { System.out.println( p1 + "&" + p2); if (p1 != p2) { } p1 = p1 + 2; p2 = p2-2 Mystery(p1, p2); } a) Show the output resulting from the call: Mystery(1,9); b) What values would result in infinite recursion? You must be specific.
Step by Step Solution
There are 3 Steps involved in it
a Show the output resulting from the call Mystery19 Solution Source code RecursiveDe... View full answer
Get step-by-step solutions from verified subject matter experts
