public static String displayScriptHistory(List<String> scriptHistory){
  StringBuilder sb=new StringBuilder();
  sb.append("MLContext Script History:\n");
  if (scriptHistory.isEmpty()) {
    sb.append("None");
  }
  int i=1;
  for (  String history : scriptHistory) {
    sb.append("--------------------------------------------\n");
    sb.append("#" + (i++) + ":\n");
    sb.append(history);
  }
  return sb.toString();
}

public static String displayScriptHistory ( List < String > scriptHistory ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( "MLContext Script History:\n" ) ; if ( scriptHistory . isEmpty ( ) ) { sb . append ( "None" ) ; } int i = 1 ; for ( String history : scriptHistory ) { sb . append ( "--------------------------------------------\n" ) ; sb . append ( "#" + ( i ++ ) + ":\n" ) ; sb . append ( history ) ; } return sb . toString ( ) ; }
generate a string listing of the script execution history .
