Fixed a lot of bugs

This commit is contained in:
2015-06-08 11:41:01 +02:00
parent 37b721215c
commit 8766037def
10 changed files with 170 additions and 92 deletions
+6 -1
View File
@@ -12,7 +12,7 @@ import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.UnsupportedAudioFileException;
public class Song {
public class Song implements Comparable<Song>{
private String title;
private String subtitle;
@@ -150,4 +150,9 @@ public class Song {
public void close()
{
}
@Override
public int compareTo(Song s) {
return getTitle().compareTo(s.getTitle());
}
}