📅  最后修改于: 2022-03-11 14:52:46.681000             🧑  作者: Mango
import java.util.*;
public class HappyYear {
static public int nextHappyYear(int year) {
for (;;) if (new HashSet(Arrays.asList((++year+"").split(""))).size() == 4) return year;
}
}