public static String [ ] listToArray ( String value , String delim ) { List < String > result = new ArrayList < String > ( ) ; StringTokenizer tokenizer = new StringTokenizer ( value , delim ) ; while ( tokenizer . hasMoreTokens ( ) ) { result . add ( tokenizer . nextToken ( ) ) ; } return result . toArray ( new String [ result . size ( ) ] ) ; }
Converts a string listing sub - strings seperated by a delimeter into an array of strings .