Question: In the printReverseMessage method of Figure 11.7, what variable changes as the recursion progresses, and what is the stopping condition? Figure 11.7 private static void
In the printReverseMessage method of Figure 11.7, what variable changes as the recursion progresses, and what is the stopping condition?
Figure 11.7

private static void print Reverse Message(String msg) { int index; // position of last character in msg if (!msg.isEmpty()) ( index= msg.length() - 1; System.out.print(msg.charAt(index)); printReverseMessage (msg.substring(0, index)); } } // end print Reverse Message
Step by Step Solution
3.39 Rating (152 Votes )
There are 3 Steps involved in it
In the printReverseMe... View full answer
Get step-by-step solutions from verified subject matter experts
