public static Iterable<String> split(String separator, String stringToSplit) {

    String[] StringArray = stringToSplit.split(separator);

    Iterable<String> iterable = Arrays.asList(StringArray);

    return iterable;
  }
public static Iterable < String > split ( String separator , String stringToSplit ) { String [ ] StringArray = stringToSplit . split ( separator ) ; Iterable < String > iterable = Arrays . asList ( StringArray ) ; return iterable ; }
Splits a String into an iterable

@param separator
@param stringToSplit
@return