From the Javadoc:
What the hecks that mean?! Well, it means that the function will return an array of Strings split by the regular expression named regex. Regular expressions are very, very powerful but I do not know how to use them so I will not try. Anyways, here is a short example of using the split method.
This is basically saying that wherever there is a space, split up the String and return an array with all the split up Strings inside of it. After being executed the array splitBySpaces would contain the elements:
| Array Element | Contents | |
| splitBySpaces[0] | "This | |
| splitBySpaces[1] | "is" | |
| splitBySpaces[2] | "just" | |
| splitBySpaces[3] | "an" | |
| splitBySpaces[4] | "example" |
There are some more examples of this in the lecture slides for CO320, look for lecture 14 (Week 9, Monday 21st November).