Beispiel #1
0
 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();
 }
Beispiel #2
0
  private void mainMenu() {
    System.out.println(Message.instance().getMessage("interpreter"));
    System.out.println(Message.instance().getMessage("version"));

    System.out.println(Message.instance().getMessage("help"));
  }