Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Recording {
- public static void main (String args[])
- {
- String title;
- String artist;
- int playingTime;
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- public String getArtist() {
- return artist;
- }
- public void setArtist(String artist) {
- this.artist = artist;
- }
- public int getPlayingTime() {
- return playingTime;
- }
- public void setPlayingTime(int i) {
- this.playingTime = i;
- }
- public Recording(String title, String artist, int playingTime) {
- this.title = title;
- this.artist = artist;
- this.playingTime = playingTime;
- }
- }
Add Comment
Please, Sign In to add comment