5段階目終わりました

This commit is contained in:
2026-09-15 13:07:00 +09:00
parent f8f6523954
commit e56a4c8bf9
2 changed files with 14 additions and 8 deletions

View File

@@ -1,10 +1,15 @@
public class EmployeeData { public class EmployeeData {
String idEmployee; String idEmployee;
String nmEmploee; String nmEmployee;
String knEmployee; String knEmployee;
String mailAddress; String mailAddress;
String password; String password;
String idDepartment; String idDepartment;
public void showInfo() {
System.out.println(this.idEmployee + "\t" + this.nmEmployee + "\t" + this.knEmployee + "\t" + this.mailAddress + "\t" + this.password + "\t" + this.idDepartment);
}
} }

View File

@@ -3,17 +3,18 @@ public class Main {
public static void main(String[] args) { public static void main(String[] args) {
EmployeeData employee = new EmployeeData(); EmployeeData employee = new EmployeeData();
employee.idEmployee = "10000"; employee.idEmployee = "10000";
employee.nmEmploee = "山田龍也"; employee.nmEmployee = "山田龍也";
employee.knEmployee = "ヤマダタツヤ"; employee.knEmployee = "ヤマダタツヤ";
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.idEmployee);
System.out.println(employee.nmEmploee); // System.out.println(employee.nmEmployee);
System.out.println(employee.knEmployee); // System.out.println(employee.knEmployee);
System.out.println(employee.mailAddress); // System.out.println(employee.mailAddress);
System.out.println(employee.password); // System.out.println(employee.password);
System.out.println(employee.idDepartment); // System.out.println(employee.idDepartment);
employee.showInfo();
} }