/* Filename:    Song.java
 * Author:      Your name
 * Course:      CSCI 161 (Section 00)
 * Date:        Today's date
 * Assignment:  Lab 11
 * Description: A simple Song class used for a Music Library
 */

public class Song {
	
	// HINT: three fields named "title", "artist", and "length"
	String title;
	String artist;
	int length;
	
	/**
	 * Creates a new song from a title, artist, and length
	 * @param trackTitle the track title
	 * @param trackArtist the track artist
	 * @param trackLength the track length (duration in seconds)
	 */
	public Song(String trackTitle, String trackArtist, int trackLength) {
		// HINT: initialize each member
		title = trackTitle;
		artist = trackArtist;
		length = trackLength;
	}
	
	/**
	 * prints a song to System.out using formatted output (printf)
	 */
	public void print() {
		// HINT: use System.out.printf -- remember the trailing newline character!
		System.out.printf("%-24s%-24s%4d\n", title, artist, length);
	}
}
