📅  最后修改于: 2022-03-11 14:52:45.409000             🧑  作者: Mango
int index = word.indexOf(guess);
while (index >= 0) {
System.out.println(index);
index = word.indexOf(guess, index + 1);
}