Guest User

Untitled

a guest
May 27th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. public class Recording {
  4. public static void main (String args[])
  5. {
  6. String title;
  7. String artist;
  8. int playingTime;
  9.  
  10.  
  11. public String getTitle() {
  12. return title;
  13. }
  14.  
  15. public void setTitle(String title) {
  16. this.title = title;
  17. }
  18.  
  19. public String getArtist() {
  20. return artist;
  21. }
  22.  
  23. public void setArtist(String artist) {
  24. this.artist = artist;
  25. }
  26.  
  27. public int getPlayingTime() {
  28. return playingTime;
  29. }
  30.  
  31. public void setPlayingTime(int i) {
  32. this.playingTime = i;
  33. }
  34.  
  35.  
  36. public Recording(String title, String artist, int playingTime) {
  37. this.title = title;
  38. this.artist = artist;
  39. this.playingTime = playingTime;
  40. }
  41. }
Add Comment
Please, Sign In to add comment