>>619
swith使えばいいのでは?

swithはbreakさせなければ下に抜けるからな。

switch (x) {
case 1:
case 3:
case 10:
 System.out.println(x);
}

なんていう風に書いとくとxが 1, 3, 10 の時だけ出力するよ。