nd4j-common/src/main/java/org/nd4j/util/StringUtils.java
public static String[] getStrings(String str, String delim){
        Collection<String> values = getStringCollection(str, delim);
        if(values.size() == 0) {
            return null;
        }
        return values.toArray(new String[values.size()]);
    }
public static String[] getStrings(String str, String delim){
        Collection<String> values = getStringCollection(str, delim);
        if(values.size() == 0) {
            return null;
        }
        return values.toArray(new String[values.size()]);
    }
Returns an arraylist of strings.
@param str the string values
@param delim delimiter to separate the values
@return the arraylist of the separated string values