38.9k views
5 votes
What is the answer for 2.8.10 word games? This is what I have so far, but I can’t seem to be able to figure out the bananaSplit public strings.

What is the answer for 2.8.10 word games? This is what I have so far, but I can’t-example-1
User Carlyn
by
5.0k points

1 Answer

3 votes

Answer:

public String bananaSplit(int insertIdx, String insertText) {

return word.substring(0, insertIdx) + insertText + word.substring(insertIdx);

}

Step-by-step explanation:

Do you have the other parts of the WordGames class?

User Jebil
by
6.3k points