1日目5段階目完了しました。
This commit is contained in:
@@ -6,4 +6,12 @@ public class EmployeeData {
|
|||||||
String mailAddress;
|
String mailAddress;
|
||||||
String password;
|
String password;
|
||||||
String idDepartment;
|
String idDepartment;
|
||||||
|
|
||||||
|
void showInfo(){
|
||||||
|
System.out.println(this.idEmployee + "\t" + this.nmEmployee +
|
||||||
|
"\t" +this.knEmployee + "\t" + this.mailAddress +
|
||||||
|
"\t" +this.password + "\t" + this.idDepartment );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,14 +15,7 @@ public class Main {
|
|||||||
employee.password = "aaa";
|
employee.password = "aaa";
|
||||||
employee.idDepartment = "10";
|
employee.idDepartment = "10";
|
||||||
|
|
||||||
//6つのフィールド出力
|
employee.showInfo();
|
||||||
System.out.println(employee.idEmployee);
|
|
||||||
System.out.println(employee.nmEmployee);
|
|
||||||
System.out.println(employee.knEmployee);
|
|
||||||
System.out.println(employee.mailAddress);
|
|
||||||
System.out.println(employee.password);
|
|
||||||
System.out.println(employee.idDepartment);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user