Note that if the character you want to split the string on occurs multiple times, this code will only extract the substring after the first occurrence. If you want to extract substrings after all occurrences of the character, you can use a loop to iterate over the array and extract each substring in turn. Also, if the character you want to split the string on is not present in the string, the split method will return an array with a single element (the original string), so you will need to add error handling to handle this case.