Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Song readSong()
- {
- System.out.println("Please enter a title: ");
- String title=keyboard.nextLine();
- System.out.println("Please enter the artist: ");
- String artist=keyboard.next();
- Song song=new Song(title,artist);
- return song;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement