Question: write a recursive method you may add this code to...
Write a recursive method. You may add this code to the Driver class used in problems #1 and #2.
- Input Parameter: a String
- Returns: a new String with the spaces removed from String
- Example: The input string "Hello World" should return "HelloWorld"
- 5 points for correctly calling and testing it from the main() method (don't forget to test the base case(s))
- 5 points for the correct method header
- 5 points for correctly identifying and coding the base case(s)
- 5 points for correctly identifying and coding the general case and making the recursive call