question: 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 ( ) ; }
target:  Generate a String listing of the script execution history.