JAVA – string methods – 3
This the third post for Java string methods. In this post I will detail more functions and its functionalities. split() This method has two variants and splits this string around matches of the given regular expression. Syntax:
1 |
public String[] split(String regex, int limit) |
or
1 |
public String[] split(String regex) |
regex — the delimiting regular expression. limit — the result threshold which means how many strings […]