6段階目終わりました
This commit is contained in:
@@ -69,8 +69,9 @@ public class EmployeeData {
|
|||||||
this.idDepartment = idDepartment;
|
this.idDepartment = idDepartment;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void showInfo() {
|
@Override
|
||||||
System.out.println(this.getIdEmployee() + "\t" + this.getNmEmployee() + "\t" + this.getKnEmployee() + "\t"
|
public String toString() {
|
||||||
|
return (this.getIdEmployee() + "\t" + this.getNmEmployee() + "\t" + this.getKnEmployee() + "\t"
|
||||||
+ this.getMailAddress() + "\t" + this.getPassword() + "\t" + this.getIdDepartment());
|
+ this.getMailAddress() + "\t" + this.getPassword() + "\t" + this.getIdDepartment());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,8 @@ public class Main {
|
|||||||
employees[4] = new EmployeeData("10004", "三宅武", "ミタケタケシ", "miya@hoge.jp", "eee", "13");
|
employees[4] = new EmployeeData("10004", "三宅武", "ミタケタケシ", "miya@hoge.jp", "eee", "13");
|
||||||
|
|
||||||
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