段階6完了しました。

This commit is contained in:
2026-09-15 15:41:53 +09:00
parent b0d903c164
commit f8295163ed
2 changed files with 10 additions and 4 deletions

View File

@@ -55,13 +55,19 @@ public class EmployeeData {
this.idDepartment = idDepartment; this.idDepartment = idDepartment;
} }
void showInfo() { @Override
System.out.println(getIdEmployee() + "\t" + getNmEmployee() + "\t" + getKnEmployee() + "\t" + getMailAddress() public String toString() {
String str;
str = (getIdEmployee() + "\t" + getNmEmployee() + "\t" + getKnEmployee() + "\t" + getMailAddress()
+ "\t" + getPassword() + "\t" + getIdDepartment()); + "\t" + getPassword() + "\t" + getIdDepartment());
return str;
} }
public EmployeeData() { public EmployeeData() {
} }
public EmployeeData(String idEmployee, String nmEmployee, String knEmployee, String mailAddress, String password, String idDepartment) {
public EmployeeData(String idEmployee, String nmEmployee, String knEmployee, String mailAddress, String password,
String idDepartment) {
this.setIdEmployee(idEmployee); this.setIdEmployee(idEmployee);
this.setNmEmployee(nmEmployee); this.setNmEmployee(nmEmployee);
this.setKnEmployee(knEmployee); this.setKnEmployee(knEmployee);

View File

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