| about | help | done | prefs | create account |
Java > String-2 > catDog
prev | next | chance
| Return true if the string "cat" and "dog" appear the same number of times in the given string.
catDog("catdog") → true catDog("catcat") → false catDog("1cat1cadodog") → true ...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 209.0
Copyright Nick Parlante 2006-10 - privacy