Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- import java.io.*;
- public class TestDriver
- {
- public static void main(String[] args)
- {
- Scanner in = new Scanner(File ("CD.txt"));
- CD a = new CD("Metallica", "Rock", "Master of puppets");
- Track b = new Track("Battery", 13, 39);
- System.out.println("Name: " + a.getGenre());
- System.out.println("Track: " + b.getLength());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement