public static List split(String str,String regex){
  return (Arrays.asList(str.split(regex)));
}

public static List split ( String str , String regex ) { return ( Arrays . asList ( str . split ( regex ) ) ) ; }
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 .
