| about | help | done | prefs | create account |
Java > Recursion-1 > countHi2
prev | next | chance
| Given a string, compute recursively the number of times lowercase "hi" appears in the string, however do not count "hi" that have an 'x' immedately before them.
countHi2("ahixhi") → 1 countHi2("ahibhi") → 2 countHi2("xhixhi") → 0 ...Save, Compile, Run See also Java Example Code. Java help docs: If Boolean Logic | Strings | While and For Loops | Arrays and Loops
|
Forget It! -- delete my code for this problem 375.0
Copyright Nick Parlante 2006-10 - privacy