Small commit while writing tests
This commit is contained in:
20
src/main/java/hhn/temp/project/UserCommands.java
Normal file
20
src/main/java/hhn/temp/project/UserCommands.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package hhn.temp.project;
|
||||
|
||||
import java.util.Scanner;
|
||||
|
||||
public class UserCommands {
|
||||
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();
|
||||
}
|
||||
public void handleInput(String input) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user