question: public static String [ ] toArray ( String arg ) { if ( arg == null ) { return new String [ 0 ] ; } StringTokenizer tok = new StringTokenizer ( arg , " ," ) ; String [ ] array = new String [ tok . countTokens ( ) ] ; int i = 0 ; while ( tok . hasMoreTokens ( ) ) { array [ i ] = tok . nextToken ( ) ; i ++ ; } return ( array ) ; }
target:  Convert comma delimited and/or space String to array of Strings