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

This commit is contained in:
2026-09-18 10:16:07 +09:00
parent 5f46aaec08
commit 8c1fba011a
2 changed files with 14 additions and 14 deletions

View File

@@ -68,7 +68,7 @@ public class EmployeeData extends BaseDate {
public EmployeeData() {
empCount++;
}
//
public EmployeeData(String idEmployee, String nmEmployee, String knEmployee, String mailAddress, String password,
String idDepartment) {
idEmployee = idEmployee.trim();

View File

@@ -11,14 +11,14 @@ public class Main {
employee[3] = new EmployeeData("10003", "丸戸章介", "マルトショウスケ", "marusyo@hoge.jp", "ddd", "13");
employee[4] = new EmployeeData("10004", "三宅武", "ミヤケタケシ", "miya@hoge.jp", "eee", "14");
// for (int i=0; i<=4; i++ ) {
// System.out.println(employee[i]);
// }
for (int i=0; i<=4; i++ ) {
System.out.println(employee[i]);
}
// int i=EmployeeData.getEmpCount();
// System.out.println("現在の社員データ件数;"+ i + "件");
//
// System.out.println(employee[0].toCSV());
// System.out.println(employee[0].getPrimaryKeyValue());
System.out.println(employee[0].toCSV());
System.out.println(employee[0].getPrimaryKeyValue());
String str = "";
while (!str.equals("0")) {
System.out.println("検索したい社員IDを入力してください(終了する場合は0)");