- Reverse a String 1
- Reverse Each Word
- Reverse a Sentence
- Palindrome
- Find Words
- CountIng Search
- Unique Characters
-
Java Sandwich - Anagrams 1
- Anagrams 2
- Counting Search 2
Java String Resources:
Find Words
Collapse Content
Show Content
How many times does the word "word" or "words" appear in a text?
You only need to search space-separated words. The "word" may be capitalized but will not have punctuation.
Challenge
Return the number of times "word" and "words" appear in a given text.
Please sign in or sign up to submit answers.
Alternatively, you can try out Learneroo before signing up.
Comments
thales
Jul 23, 6:33 AMa solution:
my code