// Each instance of the Track class represents a song. Each track has a title (the // name of the song), an artist singer), and a track length (the playing time). // Your state should includes at least each of these three properties. public class Track{ // The name of the track private String trackName; // The name of the artist private String artistName; // The time in seconds private int trackLength; // Constructor public Track(String track, String artist, int lengthInSeconds){ trackName = track; artistName = artist; trackLength = lengthInSeconds; } // Access Methods - for the title, artist and tracklength public String getTrackName() {return trackName;} public String getArtistName() {return artistName;} public int getTrackLength() { return trackLength; } // in seconds // Express the contents of the track into a single string - one that includes // the title, the name of the artist and the track length. // For example, "Eminem -- The Real Slim Shady -- 3:23" // This method will be useful to you for debugging. public String toString() { int mins = trackLength/60; int secs = trackLength%60; String trackString = artistName + " -- " + trackName + " -- " + mins + ":"; if (secs < 10){ trackString += "0" + secs; } else { trackString += secs; } return trackString; } }