Description: Syntax:: This Method Has Two Variants and Splits This String Around Matches of The Given Regular Expression
Description: Syntax:: This Method Has Two Variants and Splits This String Around Matches of The Given Regular Expression
This method has two variants and splits this string around matches of the
given regular expression.
Syntax:
Here is the syntax of this method:
public String[] split(String regex, int limit)
or
Parameters:
Here is the detail of parameters:
limit -- the result threshold which means how many strings to be returned.
Return Value:
It returns the array of strings computed by splitting this string around matches of the given regular expression.
Example:
import java.io.*;
System.out.println(retval);
}
}
}
Return Value :
Welcome
to
Tutorialspoint.com
Return Value:
Welcome
to
Tutorialspoint.com
Return Value :
Welcome
to
Tutorialspoint.com