Several new methods added in Parser class

This commit is contained in:
Leonardo Brandenberger
2021-12-02 15:15:39 +01:00
parent 9e347e8792
commit 3c67d62e42
4 changed files with 39 additions and 20 deletions
-3
View File
@@ -8,9 +8,6 @@ public enum Command {
private String commandWord;
public static <T extends Enum<T>> T getEnumValue(TextIO textIO, Class<T> commands) {
return textIO.newEnumInputReader(commands).read("What would you like to do?");
}
Command(String commandWord) {