Question: 3 0 . 9 . 2 : Use a recursive helper method to eliminate the need to extract substrings. 5 9 7 7 1 4
: Use a recursive helper method to eliminate the need to extract substrings.
qxzqy
Use a recursive helper method to make clean more efficient, by eliminating the need to extract substrings.
import java.util.Scanner;
A recursive method that removes forbidden characters from a string.
public class CleanUp
public static String cleanHelperString str String forbidden, int index
Your code goes here
if forbiddencontainscurrent
Your code goes here
else
Your code goes here
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
