day08-static应用-Arrays-操作数组的工具类

This commit is contained in:
2026-01-22 11:06:38 +08:00
parent 831ffed9f0
commit 4261fd9fd6
2 changed files with 38 additions and 4 deletions

View File

@@ -57,11 +57,12 @@ public class Test13 {
}
break;
}
}
/*if (!result) {
System.out.println("用户名不正确");
}*/
//判断是否是最后一次比对,如果是,那么就是用户名不正确
if (i == users.size() - 1) {
System.out.println("用户名不正确");
}
}
return result;
}
}