1日目 段階7 Main.java修正ver 小澤
This commit is contained in:
@@ -44,9 +44,20 @@ public class Main {
|
|||||||
for (int i = 0; i < employees.length; i++) {
|
for (int i = 0; i < employees.length; i++) {
|
||||||
if (employees[i].isMatchId("10002")) {
|
if (employees[i].isMatchId("10002")) {
|
||||||
result = true;
|
result = true;
|
||||||
System.out.println();
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
System.out.println(result);
|
||||||
|
|
||||||
|
System.out.println("99999を検索します");
|
||||||
|
result=false;
|
||||||
|
for(int i=0;i<employees.length;i++) {
|
||||||
|
if(employees[i].isMatchId("99999")) {
|
||||||
|
result = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
System.out.println(result);
|
||||||
|
|
||||||
//
|
//
|
||||||
// }
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user