About this document
Java String Split Method Explained by Vijay Kanth is a document available to read on EtoBox.
This method splits a string into an array of substrings based on a regular expression. It has two variants - one that allows specifying a limit on the number of substrings returned, and one that does not take a limit. It returns an array of strings computed by splitting the original string at matches of the given regular expression. The example demonstrates splitting a string on "-" at different limits.
- Author
- Vijay Kanth
- Language
- EN