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