status menu

This commit is contained in:
CT
2026-04-30 17:17:42 -05:00
parent a6d29dd322
commit e6620d1ae8

View File

@@ -79,6 +79,7 @@ public class HockeyStats {
case 4:
System.out.println("Thank you!");
close = true;
break;
default:
System.out.println("Please choose one of the available menu options!");
break;
@@ -112,8 +113,10 @@ public class HockeyStats {
switch (k) {
case 1:
System.out.println(players.toString());
break;
case 2:
saveData("save.txt");
break;
case 3:
break;
case 4:
@@ -130,7 +133,7 @@ public class HockeyStats {
System.out.print(
"""
<---------------------------->
Hockey Stats Editor Menu
Hockey Stats Viewer Menu
Select an option:
@@ -141,6 +144,28 @@ public class HockeyStats {
<---------------------------->
""");
boolean statsExit = false;
int k;
try {
k = s.nextInt();
} catch (Exception e) {
System.out.println("Please choose one of the available menu options!");
return false;
}
switch (k) {
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
statsExit = true;
break;
default:
System.out.println("Please choose one of the available menu options!");
break;
}
return statsExit;
}
}