created: 11/05/2010; revised 01/01/11, 09/03/14, 09/30/17

go to home page   go to next page

CHAPTER 94 — Recursion with Strings

Recursion is a powerful problem-solving technique. You should practice it. This chapter provides additional practice with recursion, this time with strings. Normally in writing a program you would use the methods that come with the String class rather than write the methods yourself, but recursive string manipulation examples are too good to pass up.

Chapter Topics:


QUESTION 1:

What is the length of this string:   ""     (the quote marks are not part of the string).


go to home page   go to next page