add song class
This commit is contained in:
@@ -2,7 +2,8 @@ package sbu.javafx;
|
||||
|
||||
import javafx.application.Application;
|
||||
|
||||
public class Launcher{
|
||||
public class Launcher {
|
||||
public static void main(String[] args) {
|
||||
// TODO: Launch the JavaFX application by calling Application.launch(Main.class) }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package sbu.javafx;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class song {
|
||||
private String songName;
|
||||
private String artist;
|
||||
private String songAddress;
|
||||
|
||||
public song(String songName, String artist, String songAddress) {
|
||||
this.songName = songName;
|
||||
this.artist = artist;
|
||||
this.songAddress = songAddress;
|
||||
}
|
||||
|
||||
public String getSongName() {
|
||||
return songName;
|
||||
}
|
||||
public String getArtist() {
|
||||
return artist;
|
||||
}
|
||||
|
||||
public String getSongAddress() {
|
||||
return songAddress;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user