This commit is contained in:
2026-09-17 13:52:40 +09:00
parent 16b21456b3
commit 7939c7aa1c

View File

@@ -73,5 +73,14 @@ public class Main {
} }
System.out.println("社員データ:" + employeeCount + "件"); System.out.println("社員データ:" + employeeCount + "件");
System.out.println("部署データ:" + departmentCount + "件"); System.out.println("部署データ:" + departmentCount + "件");
//Strpt 8
for (BaseData data : allData) {
if (data instanceof EmployeeData) {
// EmployeeData သို့ Cast လုပ်ခြင်း
EmployeeData emp = (EmployeeData) data;
System.out.println(emp.getMailAddress());
}
}
} }
} }