Fixed assignment manager to pass some tests, scanner is not yet implemented fully
This commit is contained in:
@@ -3,18 +3,22 @@ package hhn.temp.project;
|
||||
import java.util.Scanner;
|
||||
|
||||
public class UserCommands {
|
||||
Scanner scanner;
|
||||
public void start() {
|
||||
boolean close = false;
|
||||
Scanner scanner = new Scanner(System.in);
|
||||
while (!close) {
|
||||
System.out.println("Type '?' or 'help' for a list of commands");
|
||||
System.out.println("Please enter a command:");
|
||||
String input = scanner.nextLine();
|
||||
handleInput(input);
|
||||
}
|
||||
scanner.close();
|
||||
// scanner = new Scanner(System.in);
|
||||
// while (!close) {
|
||||
// System.out.println("Type '?' or 'help' for a list of commands");
|
||||
// System.out.println("Please enter a command:");
|
||||
// String input = scanner.nextLine();
|
||||
// handleInput(input);
|
||||
// }
|
||||
// scanner.close();
|
||||
}
|
||||
public void handleInput(String input) {
|
||||
|
||||
}
|
||||
public Scanner getScanner() {
|
||||
return scanner;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user