Question: in java language thanks if you can put it in a recursive method too thanks 2. By a given base case, write a recursive method
2. By a given base case, write a recursive method returns "even" if the number of characters of a given string is even, and"odd" if the length of the string is odd and write a test method to test. (10 points) public static String foo( String s) if (s.length)-0) return "even" return "odd" II general case else if (s.length)1) else
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
