Guest User

Untitled

a guest
Jul 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. import java.io.File;
  2.  
  3.  
  4. public class Song {
  5. private File filePath;
  6. private String artist;
  7. private String album;
  8. private String title;
  9. private int discNumber;
  10. private int tractNumber;
  11. private int length;
  12.  
  13. public Song(File filePath, String artist, String album, String title,
  14. int discNumber, int trackNumber, int length) {
  15. this.filePath = filePath;
  16. this.artist = artist;
  17. this.album = album;
  18. this.title = title;
  19. this.discNumber = discNumber;
  20. this.tractNumber = trackNumber;
  21. this.length = length;
  22. }
  23.  
  24. public static void main(String[] args) {
  25. File filePath = new File("...");
  26. String artist = "Britney Spears";
  27. String album = "Circus";
  28. String title = "OMG I really did it again";
  29. int discNumber = 1;
  30. int trackNumber = 2;
  31. int length = 34;
  32.  
  33. Song song =
  34. new Song(filePath, artist, album, title, discNumber, trackNumber, length);
  35. }
  36.  
  37. }
Add Comment
Please, Sign In to add comment