private static void println(StringBuilder stringBuilder,String msg){
  stringBuilder.append(msg);
  stringBuilder.append("\n");
}

private static void println ( StringBuilder stringBuilder , String msg ) { stringBuilder . append ( msg ) ; stringBuilder . append ( "\n" ) ; }
appends a message to a given stringbuilder , adds a newline character at the end .
