Fixed a lot of bugs
This commit is contained in:
+6
-1
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user