How do you  split a string?
 Using split method: Java String class defines two split methods to split Java String object. (1) String[] split( String regEx) which splits the string according to given regular expression. (2) String[] split( String regEx, int limit ), which splits the string according to given regular expression. 