This method returns collection of substrings which are divided by seperator as a form of new array
Input Parameters :
The string to be given to separate the given string as chunks. It can be chracter, number or string.
The number to be passed to retrict the number of substrings
Return Values :
Returns new substring array divided by separator.
If both the parameters are omitted or if the separator value is not found in the given string, then it will return the complete string as single element array
Test this method :