Well, the split function returns an array of strings. So you need a String array, and assign the split function to that array.