public class Login {
public static void main(String[] args) {
int[] id = {11, 22};
String password = "12345";

if (args.length < 2) {
System.out.println("IDとパスワードを入れろ");
System.exit(0);
}
for (int i = 0; i < id.length; i++) {
if (args[0].equals(String.valueOf(id[i]))) {
if (args[1].equals(password)) {
System.out.println("ログイン成功");
System.exit(0);
}
}
}
System.out.println("ログイン失敗");
}
}