What is returned by "red,blue".split(",")?
Explanation
split uses the comma as a separator and returns an array containing the two surrounding substrings. The comma is omitted from these ordinary results, and the source string is not modified.
split uses the comma as a separator and returns an array containing the two surrounding substrings. The comma is omitted from these ordinary results, and the source string is not modified.