1日目段階5です。
This commit is contained in:
@@ -6,4 +6,9 @@ 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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,8 +3,7 @@ public class Main {
|
|||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
// TODO 自動生成されたメソッド・スタブ
|
// TODO 自動生成されたメソッド・スタブ
|
||||||
|
|
||||||
|
|
||||||
EmployeeData employee = new EmployeeData();
|
EmployeeData employee = new EmployeeData();
|
||||||
|
|
||||||
employee.idEmployee = "10000";
|
employee.idEmployee = "10000";
|
||||||
@@ -13,14 +12,8 @@ public class Main {
|
|||||||
employee.mailAddress = "yamada@hoge.jp";
|
employee.mailAddress = "yamada@hoge.jp";
|
||||||
employee.password = "aaa";
|
employee.password = "aaa";
|
||||||
employee.idDepartment = "10";
|
employee.idDepartment = "10";
|
||||||
|
|
||||||
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);
|
|
||||||
|
|
||||||
|
employee.showInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user