java tutorial - Java split() method - java programming - learn java - java basics - java for beginners
Learn Java - Java tutorial - Java strings split - Java examples - Java programs
Description
The split () method — in Java, divides the given line around this regular expression and has two options
Syntax
Syntax method:
Options
Detailed information about the parameters:
- regex - the delimitation of a regular expression;
- limit is a threshold, the result of which means how many lines must be returned.
Return value
- In Java, split () returns an array of strings calculated by dividing the given line around this regular expression.