So, look at the String class. Look at methods for finding characters, like the comma that separates values. Look at methods for extracting parts of the String as a substring. Look for methods for converting a (sub)String to an int.
The needed methods all exist. You just need to call them in the right order.
Or, better, ditch the String class, use a char array and strtok() and atoi().