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
Get step-by-step solutions from verified subject matter experts
