diff --git a/em-oop/src/EmployeeData.java b/em-oop/src/EmployeeData.java new file mode 100644 index 0000000..0782e42 --- /dev/null +++ b/em-oop/src/EmployeeData.java @@ -0,0 +1,15 @@ + +public class EmployeeData { + String idEmployee; + String nmEmployee; + String knEmployee; + String mailAddress; + String password; + String idDepartment; + + void showInfo() { + System.out.println(this.idEmployee + "\t" + this.nmEmployee + + "\t" + this.knEmployee + "\t" + this.mailAddress + + "\t" + this.password + "\t" + this.idDepartment); + } +} diff --git a/em-oop/src/Main.java b/em-oop/src/Main.java new file mode 100644 index 0000000..f5b4186 --- /dev/null +++ b/em-oop/src/Main.java @@ -0,0 +1,19 @@ + +public class Main { + + public static void main(String[] args) { + // TODO 自動生成されたメソッド・スタブ + EmployeeData employee = new EmployeeData(); + + employee.idEmployee = "10000"; + employee.nmEmployee = "山田龍也"; + employee.knEmployee = "ヤマダタツヤ"; + employee.mailAddress = "yamada@hoge.jp"; + employee.password = "aaa"; + employee.idDepartment = "10"; + + employee.showInfo(); + + } + +}