0914 段階5 小澤

This commit is contained in:
2026-09-14 16:41:08 +09:00
parent e36f1ceb03
commit 9e5eb3c7c5
2 changed files with 18 additions and 6 deletions

View File

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

View File

@@ -9,13 +9,20 @@ public class Main {
employee.password="aaa"; employee.password="aaa";
employee.idDepartment="10"; employee.idDepartment="10";
System.out.println(employee.idEmployee); employee.showInfo();
System.out.println(employee.nmEmployee);
System.out.println(employee.knEmployee); // System.out.println();
System.out.println(employee.mailAddress); // System.out.println(employee.nmEmployee);
System.out.println(employee.password); // System.out.println(employee.knEmployee);
System.out.println(employee.idDepartment); // System.out.println(employee.mailAddress);
// System.out.println(employee.password);
// System.out.println(employee.idDepartment);
} }
} }