Code example for Console

Methods: printf

0
    } 
 
    @Override 
    public void header(String fmt, Object... args) {
      fmt = fmt.replaceAll("\n", "\n*** ");
      console.printf("\n*** " + fmt + "\n*** \n\n", args);
    } 
 
    @Override 
    public void message(String fmt, Object... args) {
      console.printf(fmt, args);
    } 
  } 
 
  private static class Batch extends ConsoleUI { 
    @Override 
    public boolean isBatch() { 
      return true; 
    } 
 
    @Override