有没有更有效的方法将数百个标记为错误的州际公路?

Is there a more efficent way to mark the hundreds as incorrect interstates?

我有一个 Java 问题,需要编写一个函数来列出有效和无效的州际组合。以下函数通过了分级,但我很好奇是否有更好的方法来编写平 100 间隔的检查。(100,200 等)下面我只是强行使用它并且它有效,因为只有 9 个值但我想一种更具可扩展性的方法,以防我遇到更大的东西。谢谢!

    else if (input1 == 100 || input1 == 200 || input1 == 300 || input1 == 400 || input1 == 500 || input1 == 600 || input1 ==700 || input1 == 800 || input1 == 900){
     
public static boolean isValid(int input1) {
    return input1 % 100 == 0;
}