add song class
This commit is contained in:
Generated
+6
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@@ -45,8 +45,8 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.13.0</version>
|
<version>3.13.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>23</source>
|
<source>21</source>
|
||||||
<target>23</target>
|
<target>21</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -2,7 +2,8 @@ package sbu.javafx;
|
|||||||
|
|
||||||
import javafx.application.Application;
|
import javafx.application.Application;
|
||||||
|
|
||||||
public class Launcher{
|
public class Launcher {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
// TODO: Launch the JavaFX application by calling Application.launch(Main.class) }
|
// 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