A. Radio station KJAVA wants a class to keep track of recordings it plays. Create a class named Recording that contains fields to hold methods for setting and getting a Recordings title, artist, and playing time in seconds.
I keep getting an error saying there are no main methods. This is the code written for bartleby's answer. This is what I have so far
public class Recording{private String song;private String artist;private int playTime;public void setSong(String title){song=title;}public void setArtist(String name){artist=name;}public void setPlayTime(int time){playTime=time;}public String getSong(){return song;}public int getPlayTime(){return playTime;}}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here