2日目段階6です
This commit is contained in:
@@ -69,8 +69,9 @@ 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() {
|
||||||
+ "\t" + getPassword() + "\t" + getIdDepartment());
|
return getIdEmployee() + "\t" + getNmEmployee() + "\t" + getKnEmployee() + "\t" + getMailAddress()
|
||||||
|
+ "\t" + getPassword() + "\t" + getIdDepartment();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ public class Main {
|
|||||||
|
|
||||||
for (int i = 0; i < employees.length; i++) {
|
for (int i = 0; i < employees.length; i++) {
|
||||||
|
|
||||||
employees[i].showInfo();
|
System.out.println(employees[i]);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user