1日目の段階7完了しました

This commit is contained in:
2026-09-16 16:30:59 +09:00
parent 5fe3b0120f
commit 139165eaa5
2 changed files with 21 additions and 8 deletions

View File

@@ -106,4 +106,13 @@ public class EmployeeData extends BaseDate {
public String getPrimaryKeyValue() { public String getPrimaryKeyValue() {
return idEmployee; return idEmployee;
} }
public boolean isMatchId(String id) {
System.out.println(id + "を検索します");
if(id.equals(idEmployee)) {
return true;
} else {
return false;
}
}
} }

View File

@@ -11,14 +11,18 @@ public class Main {
employee[4] = new EmployeeData("10004","三宅武","ミヤケタケシ","miya@hoge.jp","eee","14"); employee[4] = new EmployeeData("10004","三宅武","ミヤケタケシ","miya@hoge.jp","eee","14");
for (int i=0; i<=4; i++ ) { // for (int i=0; i<=4; i++ ) {
System.out.println(employee[i]); // System.out.println(employee[i]);
} // }
int i=EmployeeData.getEmpCount(); // int i=EmployeeData.getEmpCount();
System.out.println("現在の社員データ件数;"+ i + "件"); // System.out.println("現在の社員データ件数;"+ i + "件");
//
System.out.println(employee[0].toCSV()); // System.out.println(employee[0].toCSV());
System.out.println(employee[0].getPrimaryKeyValue()); // System.out.println(employee[0].getPrimaryKeyValue());
boolean bo= employee[0].isMatchId("10000");
System.out.println(bo);
} }
} }