示例#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();
 }
示例#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"));
  }