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