private void readCommand() { try { System.out.print(Message.instance().getMessage("prompt")); String cmd = sc.nextLine(); CommandManager.singleton().runCommand(cmd); } catch (RuntimeException e) { System.out.println("Erro! " + e.getMessage()); } readCommand(); }
private void mainMenu() { System.out.println(Message.instance().getMessage("interpreter")); System.out.println(Message.instance().getMessage("version")); System.out.println(Message.instance().getMessage("help")); }