段階6完了しました。
This commit is contained in:
@@ -55,13 +55,19 @@ public class EmployeeData {
|
||||
this.idDepartment = idDepartment;
|
||||
}
|
||||
|
||||
void showInfo() {
|
||||
System.out.println(getIdEmployee() + "\t" + getNmEmployee() + "\t" + getKnEmployee() + "\t" + getMailAddress()
|
||||
@Override
|
||||
public String toString() {
|
||||
String str;
|
||||
str = (getIdEmployee() + "\t" + getNmEmployee() + "\t" + getKnEmployee() + "\t" + getMailAddress()
|
||||
+ "\t" + getPassword() + "\t" + getIdDepartment());
|
||||
return str;
|
||||
}
|
||||
|
||||
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.setNmEmployee(nmEmployee);
|
||||
this.setKnEmployee(knEmployee);
|
||||
|
||||
@@ -12,7 +12,7 @@ public class Main {
|
||||
|
||||
|
||||
for (int i=0; i<=4; i++ ) {
|
||||
employee[i].showInfo();
|
||||
System.out.println(employee[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user