id/email
password
forgot password
about | help | done | prefs | create account
JavaBat java practice problems

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: Example Code Java help: If Boolean Logic | Strings | While and For Loops | Arrays and Loops


prev  |  next  |  chance   |  JavaBat  >  String-2

Forget It! -- delete my code for this problem 209.0

Copyright Nick Parlante 2006-09 - privacy