6段階目終わりました

This commit is contained in:
2026-09-15 16:21:10 +09:00
parent 1158708741
commit 782d0db2a9
2 changed files with 5 additions and 3 deletions

View File

@@ -69,8 +69,9 @@ public class EmployeeData {
this.idDepartment = idDepartment;
}
public void showInfo() {
System.out.println(this.getIdEmployee() + "\t" + this.getNmEmployee() + "\t" + this.getKnEmployee() + "\t"
@Override
public String toString() {
return (this.getIdEmployee() + "\t" + this.getNmEmployee() + "\t" + this.getKnEmployee() + "\t"
+ this.getMailAddress() + "\t" + this.getPassword() + "\t" + this.getIdDepartment());
}

View File

@@ -10,7 +10,8 @@ public class Main {
employees[4] = new EmployeeData("10004", "三宅武", "ミタケタケシ", "miya@hoge.jp", "eee", "13");
for (int i = 0; i < employees.length; i++) {
employees[i].showInfo();
System.out.println(employees[i]);
}