This commit is contained in:
2026-10-23 16:34:44 +09:00
parent 126e77eec0
commit 507bb0797a

View File

@@ -24,8 +24,6 @@ public class Main {
System.out.println("システムを開始します"); System.out.println("システムを開始します");
Main main = new Main(); Main main = new Main();
while (true) { while (true) {
try { try {
main.start(); main.start();
} catch (Exception e) { } catch (Exception e) {
@@ -57,7 +55,6 @@ public class Main {
}else { }else {
start2(); start2();
} }
break; break;
case "2": //登録 case "2": //登録
if(employeeMode) { if(employeeMode) {
@@ -65,7 +62,6 @@ public class Main {
}else { }else {
depInsert(); depInsert();
} }
break; break;
case "3": //更新 case "3": //更新
if(employeeMode) { if(employeeMode) {
@@ -73,7 +69,6 @@ public class Main {
}else { }else {
depUpdate(); depUpdate();
} }
break; break;
case "4": //削除 case "4": //削除
if(employeeMode) { if(employeeMode) {
@@ -81,7 +76,6 @@ public class Main {
}else { }else {
depDelete(); depDelete();
} }
break; break;
case "9": //データ切り替え case "9": //データ切り替え
employeeMode = !employeeMode; employeeMode = !employeeMode;
@@ -387,37 +381,6 @@ public class Main {
System.out.println("削除が完了しました"); System.out.println("削除が完了しました");
} }
/**
* 入力値を判定し、返却する
*
* @param titleName 入力項目名
* @param flg 数値チェック可否フラグ
* @return チェック済み入力値
*/
/* public static String inputCheck(String titleName, boolean flg) {
String str = null;
while (true) {
System.out.println(titleName + "を入力してください");
str = sc.nextLine();
if (str.trim().length() == 0) {
System.out.println(titleName + "は入力必須です。");
continue;
}
if (flg) {
if (str.trim().length() > 0) {
try {
Integer.parseInt(str);
} catch (NumberFormatException e) {
System.out.println(titleName + "は数値入力です");
continue;
}
}
}
break;
}
return str;
}
*/
public void DepSelectAll()throws FileNotFoundException{ public void DepSelectAll()throws FileNotFoundException{
DepartmentAccess da = new DepartmentAccess(); DepartmentAccess da = new DepartmentAccess();