public static Collection<String> getStringCollection(String str, String delim) {
    """
	Returns a collection of strings.
	
	@param str
	String to parse
	@param delim
	delimiter to separate the values
	@return Collection of parsed elements.
    """
        List<String> values = new ArrayList<String>();
        if (str == null)
            return values;
        StringTokenizer tokenizer = new StringTokenizer(str, delim);
        while (tokenizer.hasMoreTokens()) {
            values.add(tokenizer.nextToken());
        }
        return values;
    }
public static Collection<String> getStringCollection(String str, String delim) {
        List<String> values = new ArrayList<String>();
        if (str == null)
            return values;
        StringTokenizer tokenizer = new StringTokenizer(str, delim);
        while (tokenizer.hasMoreTokens()) {
            values.add(tokenizer.nextToken());
        }
        return values;
    }
public static Collection < String > getStringCollection ( String str , String delim ) { List < String > values = new ArrayList < String > ( ) ; if ( str == null ) return values ; StringTokenizer tokenizer = new StringTokenizer ( str , delim ) ; while ( tokenizer . hasMoreTokens ( ) ) { values . add ( tokenizer . nextToken ( ) ) ; } return values ; }
Returns a collection of strings.

@param str
String to parse
@param delim
delimiter to separate the values
@return Collection of parsed elements.
Returns a collection of strings .