split() String Example

java.lang.String class comes with overloaded split() String method to split a string into tokens. Introduced in JDK 1.4, earlier done with SringTokenizerr. The signature of split() String Example is given as defined in Java API. public String[] split(String regex): Returns an array of string words after splitting the string into words. Introduces with JDK 1.4. …

split() String Example Read More »