Question: Write a method that will accept a string in the format: John 80, Kim 90, Jones 77, Santa 100 and returns only the names found
Write a method that will accept a string in the format: "John 80, Kim 90, Jones 77, Santa 100" and returns only the names found in the string as an arraylist. There is a space between each name and the score. There is also a space between the comma and the next name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
