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:

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!