The right code is,
secondWord = sentence.substr (sentence.find ("`") + 1);
secondWord = secondWord.substr (0, secondWord.find ("`"));
The word youre looking for is turpentine, because you don't need to cut down the tree to collect or make it.
Answer:
public String bananaSplit(int insertIdx, String insertText) {
return word.substring(0, insertIdx) + insertText + word.substring(insertIdx);
}
Explanation:
Do you have the other parts of the WordGames class?