The java string split() method splits a string according a given regular expression and returns a char array. There are two signature for split() method in java ...
String str = "the split method takes a regular expression as a parameter and breaks the given string around matches of this regular expression"; ...