Question: Implement function public String splitIntoWord(String str) this function split a given String str into substring words. Hint: you have already the library function *checkWord(String s)

Implement function public String splitIntoWord(String str)

this function split a given String str into substring words.

Hint: you have already the library function *checkWord(String s) that return true if the word exists in the dictionary and false otherwise.

Input: "hehasnoteatentoday"

After calling splitIntoWord(String input) it returns:

Output: "He has not eaten today"

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 Databases Questions!