The directions of the lab suggests that you use the indexOf method and the substring method. Have you done so? Within the body of the method you are to write, think about using the indexOf method to find the index of the comma following the last name.
The code for the gansta name program we wrote in class is posted in Moodle. Take a look at that code.