📅  最后修改于: 2022-03-11 14:52:22.963000             🧑  作者: Mango
public class Main {
public static void main(String[] args) {
String[] items = new String[] {"one", "two", "three", "four"};
int i = 0;
while(true){
System.out.println(items[i % items.length]);
i++;
}
}
}