Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.File;
- public class Song {
- private File filePath;
- private String artist;
- private String album;
- private String title;
- private int discNumber;
- private int tractNumber;
- private int length;
- public Song(File filePath, String artist, String album, String title,
- int discNumber, int trackNumber, int length) {
- this.filePath = filePath;
- this.artist = artist;
- this.album = album;
- this.title = title;
- this.discNumber = discNumber;
- this.tractNumber = trackNumber;
- this.length = length;
- }
- public static void main(String[] args) {
- File filePath = new File("...");
- String artist = "Britney Spears";
- String album = "Circus";
- String title = "OMG I really did it again";
- int discNumber = 1;
- int trackNumber = 2;
- int length = 34;
- Song song =
- new Song(filePath, artist, album, title, discNumber, trackNumber, length);
- }
- }
Add Comment
Please, Sign In to add comment