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...


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;
}
}



Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here