Question: 1 . Follow the instructions in the Test Log, completing the tables and making commits as instructed. 2 . Create test file ( s )

1.Follow the instructions in the Test Log, completing the tables and making
commits as instructed.
2.Create test file(s) in src/test/java.
3.Create implementation code file(s) in src/main/java.
Word Count Kata - Base
The input will be a string of text. Non-words (numbers, punctuation) can be ignored. Words are separated by spaces, tabs, new-lines. Word case is ignored.
The output will be a list of all the unique words in the input string, one word per line. The line will the word, followed by how many times that word appeared in the input string.
Example:
Input: "Test and test again until it works."
Output:
test 2
and 1
again 1
until 1
it 1
works 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!