nd4j-common/src/main/java/org/nd4j/util/StringUtils.java
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;
    }
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 .