Day1_9段階目
This commit is contained in:
@@ -53,8 +53,16 @@ public class Main {
|
||||
|
||||
|
||||
Scanner scanner = new Scanner(System.in);
|
||||
System.out.println("検索したい社員IDを入力してください");
|
||||
|
||||
while(true) {
|
||||
System.out.println("検索したい社員IDを入力してください(終了する場合は0)");
|
||||
String id = scanner.nextLine();
|
||||
|
||||
if(id.equals("0")) {
|
||||
System.out.println("システムを終了します");
|
||||
break;
|
||||
}
|
||||
|
||||
boolean found = false;
|
||||
|
||||
for (int i = 0; i < Employees.length; i++) {
|
||||
@@ -69,7 +77,7 @@ public class Main {
|
||||
if(found == false) {
|
||||
System.out.println("該当する社員が見つかりませんでした");
|
||||
}
|
||||
|
||||
}
|
||||
// Employees[0].showInfo();
|
||||
|
||||
// System.out.println(Employees.idEmployee);
|
||||
|
||||
Reference in New Issue
Block a user