2日目
This commit is contained in:
@@ -24,8 +24,6 @@ public class Main {
|
||||
System.out.println("システムを開始します");
|
||||
Main main = new Main();
|
||||
while (true) {
|
||||
|
||||
|
||||
try {
|
||||
main.start();
|
||||
} catch (Exception e) {
|
||||
@@ -57,7 +55,6 @@ public class Main {
|
||||
}else {
|
||||
start2();
|
||||
}
|
||||
|
||||
break;
|
||||
case "2": //登録
|
||||
if(employeeMode) {
|
||||
@@ -65,7 +62,6 @@ public class Main {
|
||||
}else {
|
||||
depInsert();
|
||||
}
|
||||
|
||||
break;
|
||||
case "3": //更新
|
||||
if(employeeMode) {
|
||||
@@ -73,7 +69,6 @@ public class Main {
|
||||
}else {
|
||||
depUpdate();
|
||||
}
|
||||
|
||||
break;
|
||||
case "4": //削除
|
||||
if(employeeMode) {
|
||||
@@ -81,7 +76,6 @@ public class Main {
|
||||
}else {
|
||||
depDelete();
|
||||
}
|
||||
|
||||
break;
|
||||
case "9": //データ切り替え
|
||||
employeeMode = !employeeMode;
|
||||
@@ -387,37 +381,6 @@ public class Main {
|
||||
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{
|
||||
DepartmentAccess da = new DepartmentAccess();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user