Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - I don't quite understand the usage of split in java, please explain it to an expert ~
I don't quite understand the usage of split in java, please explain it to an expert ~
Split splits the string according to matching the given regular expression.

The array returned by this method contains substrings of this string, and each substring is terminated by another substring that matches the given expression, or by the end of the string. The substrings in the array are arranged in the order in which they appear in the string. If the expression does not match any part of the input, then the resulting array has only one element, that is, this string.