question: public static String [ ] split ( String searchIn , String splitter ) { String [ ] results = new String [ count ( searchIn , splitter ) + 1 ] ; int position = 0 ; int i = 0 ; while ( searchIn . indexOf ( splitter , position ) >= 0 ) { results [ i ] = searchIn . substring ( position , searchIn . indexOf ( splitter , position + 2 ) ) ; position = searchIn . indexOf ( splitter , position ) + 1 ; i ++ ; } results [ ( results . length - 1 ) ] = searchIn . substring ( position ) ; return results ; }
target:  This function will split a string based on a split character.