question: public static List < String > split ( String stringToSplit , String delimiter , String markers , String markerCloses , boolean trim ) { if ( stringToSplit == null ) { return new ArrayList < String > ( ) ; } if ( delimiter == null ) { throw new IllegalArgumentException ( ) ; } int delimPos = 0 ; int currentPos = 0 ; List < String > splitTokens = new ArrayList < String > ( ) ; while ( ( delimPos = indexOfIgnoreCase ( currentPos , stringToSplit , delimiter , markers , markerCloses , SEARCH_MODE__MRK_COM_WS ) ) != - 1 ) { String token = stringToSplit . substring ( currentPos , delimPos ) ; if ( trim ) { token = token . trim ( ) ; } splitTokens . add ( token ) ; currentPos = delimPos + 1 ; } if ( currentPos < stringToSplit . length ( ) ) { String token = stringToSplit . substring ( currentPos ) ; if ( trim ) { token = token . trim ( ) ; } splitTokens . add ( token ) ; } return splitTokens ; }
target:  Splits stringToSplit into a list, using the given delimiter