Question: Java Program: - Create an Arraylist for songs - Create a menu that allows the user to print the playlist, add songs, or remove songs
Java Program:


- Create an Arraylist for songs - Create a menu that allows the user to print the playlist, add songs, or remove songs - Create a method that prints the playlist - Create a method that allows the user to add songs to the ArrayList - Create a method that allows the user to remove songs based on the index number Example Output Choice: 1) Print Playlist 2) Add Song to Playlist 3) Remove Song from Playlist 4) Exit Program 1 Yottabyte Stay It's Only Last Dancer Without You Choice: 1) Print Playlist 2) Add Song to Playlist 3) Remove Song from Playlist 4) Exit Program 2 Enter the Song to add: Feel Good Choice: 1) Print Playlist 2) Add Song to Playlist 3) Remove Song from Playlist 4) Exit Program 3 Enter the index of the song to remove: 0 Choice: 1) Print Playlist 2) Add Song to Playlist 3) Remove Song from Playlist 4) Exit Program 4 Goodbye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
