code: public static List<String> split(String str, String regex) {
      return (Arrays.asList(str.split(regex)));
    }
docs: Splits the given string using the given regex as delimiters.
  This method is the same as the String.split() method (except it throws
  the results in a List),
  and is included just to give a call that is parallel to the other
  static regex methods in this class.
  
  @param str   String to split up
  @param regex String to compile as the regular expression
  @return List of Strings resulting from splitting on the regex