Driver code
public static void Main ( ) { String str = " geeks ; for ; geeks " ; char dl = ' ; ' ; List < String > res = splitStrings ( str , dl ) ; foreach ( String x in res ) { Console . WriteLine ( x ) ; } } }