public void print(String text){
  String[] lines=text.split("\n");
  for (  String line : lines) {
    view.print(line.isEmpty() ? " " : line);
  }
  view.scrollBottom();
  for (  ActionDelegate actionDelegate : actionDelegates) {
    actionDelegate.onConsoleOutput(this);
  }
}

public void print ( String text ) { String [ ] lines = text . split ( "\n" ) ; for ( String line : lines ) { view . print ( line . isEmpty ( ) ? " " : line ) ; } view . scrollBottom ( ) ; for ( ActionDelegate actionDelegate : actionDelegates ) { actionDelegate . onConsoleOutput ( this ) ; } }
print text on console .
