Stept 8
This commit is contained in:
@@ -73,5 +73,14 @@ public class Main {
|
||||
}
|
||||
System.out.println("社員データ:" + employeeCount + "件");
|
||||
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());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user