fix warnings
This commit is contained in:
@@ -12,7 +12,10 @@ public class App {
|
||||
1 - Console
|
||||
2 - Window
|
||||
3 - 3D.""");
|
||||
switch (new Scanner(System.in).nextLine()) {
|
||||
Scanner scan = new Scanner(System.in);
|
||||
String line = scan.nextLine();
|
||||
scan.close();
|
||||
switch (line) {
|
||||
case "1", "Console", "console":
|
||||
ConsoleMain.main(args);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user