Created
August 6, 2015 11:58
-
-
Save burnix/ddc7784f4a956eba65e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Song | |
//implements Comparable<Song> | |
{ | |
String artist; | |
String song; | |
float rate; | |
Song (String a, String s, float r){ | |
artist = a; | |
song = s; | |
rate = r; | |
} | |
public String getArtist() { | |
return artist; | |
} | |
public void setArtist(String artist) { | |
this.artist = artist; | |
} | |
public String getSong(){ | |
return song; | |
} | |
public void setSong(String song){ | |
this.song = song; | |
} | |
public float getRate(){ | |
return rate; | |
} | |
public void setRate(float rate){ | |
this.rate = rate; | |
} | |
// @Override | |
// public int compareTo(Song songart) { | |
// return artist.compareTo(songart.getArtist()); | |
// } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment