Question: JAVA: Write a method called searchPlayList that takes an ArrayList of Strings as a parameter (the playList) and returns a boolean. In the method body,

JAVA:

Write a method called searchPlayList that takes an ArrayList of Strings as a parameter (the playList) and returns a boolean. In the method body, prompt the user to enter a song name (the search term, a String). Then check if the song name appears in the playlist ArrayList. If it is found, print "Song found", otherwise, print "Song not found".

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!