3日目段階9完了しました

This commit is contained in:
2026-09-18 14:58:19 +09:00
parent d6d4cb59b1
commit b66b0d1886

View File

@@ -42,25 +42,40 @@ public class Main {
alldate[9] = dept5; alldate[9] = dept5;
alldate[10] = dept6; alldate[10] = dept6;
int num1 = 0; // int num1 = 0;
int num2 = 0; // int num2 = 0;
for (int i = 0; i <= 10; i++) { // for (int i = 0; i <= 10; i++) {
if (alldate[i] instanceof EmployeeData) { // if (alldate[i] instanceof EmployeeData) {
num1++; // num1++;
EmployeeData emp = (EmployeeData) alldate[i]; // EmployeeData emp = (EmployeeData) alldate[i];
System.out.println(emp.getMailAddress()); // System.out.println(emp.getMailAddress());
} else { // } else {
num2++; // num2++;
} // // System.out.println(alldate[i]);
// }
// System.out.println(alldate[i]); // System.out.println("社員データ:" + num1 + "件");
} // System.out.println("部署データ" + num2 + "件");
System.out.println("社員データ:" + num1 + "件");
System.out.println("部署データ" + num2 + "件");
// int i=EmployeeData.getEmpCount(); // int i=EmployeeData.getEmpCount();
// System.out.println("現在の社員データ件数;"+ i + "件"); // System.out.println("現在の社員データ件数;"+ i + "件");
String id = ("");
for (int i = 0; i <= 10; i++) {
if (alldate[i] instanceof DepartmentDate) {
DepartmentDate dep = (DepartmentDate) alldate[i];
if (dep.getNmDepartment().equals("システム開発事業部")) {
id = dep.getIdDepartment();
break;
}
}
}
for (int i = 0; i < 10; i++) {
if (alldate[i] instanceof EmployeeData) {
EmployeeData emp = (EmployeeData) alldate[i];
if (emp.getIdDepartment().equals(id)) {
System.out.println(emp.getNmEmployee() + " " + emp.getMailAddress());
}
}
}
System.out.println(employee[0].toCSV()); System.out.println(employee[0].toCSV());
System.out.println(employee[0].getPrimaryKeyValue()); System.out.println(employee[0].getPrimaryKeyValue());
String str = ""; String str = "";