Questions by alvis22 - Page 36

14.1 Final Programming ProblemYou will be building an ArrayList of Song objects. (1) Create two files to submit.Song.java - Class declarationPlaylist.java - Contains main() method and the ArrayList of Song objects. Incorporate static methods to be called for each option.Build the Song class per the following specifications. Note: Some methods can initially be method stubs (empty methods), to be completed in later steps.Private fieldsString uniqueID - Initialized to "none" in default constructorstring songName - Initialized to "none" in default constructorstring artistName - Initialized to "none" in default constructorint songLength - Initialized to 0 in default constructorDefault constructorParameterized constructor - accepts 4 parameters to assign to data membersPublic member methodsString getID()- AccessorString getSongName() - AccessorString getArtistName() - Accessorint getSongLength() - Accessorvoid printSong()Ex. of printSongs output:Unique ID: S123Song Name: PegArtist Name: Steely DanSong Length (in seconds): 237(2) In main(), prompt the user for the title of the playlist. (1 pt)Ex:Enter playlist's title:JAMZ (3) Implement the printMenu() method. printMenu() takes the playlist title as a parameter and a Scanner object, outputs a menu of options to manipulate the playlist, and reads the user menu selection. Each option is represented by a single character. Build and output the menu within the method.If an invalid character is entered, display the message: ERROR - Invalid option. Try again. and continue to prompt for a valid choice. Hint: Implement Quit before implementing other options. Call printMenu() in the main() method.