2日目段階6です

This commit is contained in:
2026-09-18 12:59:07 +09:00
parent 27bbe22c0d
commit 07a204e760
2 changed files with 5 additions and 4 deletions

View File

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

View File

@@ -60,7 +60,7 @@ public class Main {
for (int i = 0; i < employees.length; i++) {
employees[i].showInfo();
System.out.println(employees[i]);
}
}