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

AP-1 > wordsCount
prev  |  next  |  chance

Given an array of strings, return the count of the number of strings with the given length.

wordsCount({"a", "bb", "b", "ccc"}, 1) → 2
wordsCount({"a", "bb", "b", "ccc"}, 3) → 1
wordsCount({"a", "bb", "b", "ccc"}, 4) → 0

...Save, Compile, Run

See Also: Example Code Java help: If Boolean Logic | Strings | While and For Loops | Arrays and Loops


prev  |  next  |  chance   |  JavaBat  >  AP-1

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

Copyright Nick Parlante 2006-09 - privacy