Skip to content

Instantly share code, notes, and snippets.

@burnix
Created August 6, 2015 11:58
Show Gist options
  • Save burnix/ddc7784f4a956eba65e0 to your computer and use it in GitHub Desktop.
Save burnix/ddc7784f4a956eba65e0 to your computer and use it in GitHub Desktop.
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