base/common/src/main/com/thesett/common/util/StringUtils.java
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()]);
    }
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()]);
    }
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.

<p/>For example, suppose the string, "one,two,three" is presented with the delimter ",", then this will be
converted into the string array { "one", "two", "three" }.

@param  value The string to convert.
@param  delim The delimeter.

@return The string converted into an array of strings.
Converts a string listing sub - strings seperated by a delimeter into an array of strings .