SyntaxFix
Write A Post
Hire A Developer
Questions
String word = "bannanas"; String guess = "n"; String temp = word; while(temp.indexOf(guess) != -1) { int index = temp.indexOf(guess); System.out.println(index); temp = temp.substring(index + 1); }