Question: Java playlist program. All the necessary information are on the pictures. The PlayList Project This assignment requires you to design a class that mimics the

Java playlist program. All the necessary information are on the pictures.
The PlayList Project This assignment requires you to design a class that mimics the creation and use of a playlist for an mp3 player. 

The PlayList Project This assignment requires you to design a class that mimics the creation and use of a playlist for an mp3 player. The class will provide the capability to create a playlist by having the user enter playlist information from the keyboard, writing the playlist file (playlist.txt) to disk, reading the file from disk, and printing the read file on the screen. Your class needs to meet the following criteria and include the following methods: 1. All methods, including the main () method will be contained in a single class file. 2. The file name of the text file, for both writing and reading is to be "playlist.txt". 3. No constructors need to be used, methods can all be static. 4. The following methods: A method makeList (String array[]) which does the following: Prompts the user to enter the song title, artist name, and a rating (from 1 through 5) for each entry on the list. . Assigns the concatenated string to an array element. Each element represents a list item, and the array represents the playlist. Calls printFile () to print each element of the array to the screen. A method writeFile (String array []) which does the following: Writes each element of the array to the playlist.txt file as a separate line in the file. Once the file has been written, calls print File () to print each element of the array to the screen.. . . A method readFile () which does the following: Calls a private helper method get NumLines () which reads the number of lines stored in the playlist.txt file (see below for more information). Reads each line of the playlist.txt file and assigns the line to an array element. Calls printFile() to print each element of the array to the screen. . . Concatenates the song title, artist name, and rating strings together separating each item by a comma (a comma delimited line of text). A method get NumLines () which does the following: Functions as a helper method to readFile(). Reads the number of lines in the playlist.txt file and returns that integer to the calling method or variable. . . . Uses a FileReader object wrapped by a BufferedReader object to facilitate the counting of lines. Returns an integer value to readFile () (or any other calling method or variable) representing the number of lines in the existing text file to be read. A printFile (String array[]) whose function is to print the playlist entries assigned to an array.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javaio public class PlaylistManager public static void mainString args String playlist new String100 Max 100 songs for simplicity int choice do ... View full answer

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 Programming Questions!