Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package id.ac.its.nico.CDDVD;
- public class MenuAkses
- {
- public static void main(String[]args){
- Database database = new Database();
- Catridge koleksi1, koleksi2;
- DVD game1, game2;
- koleksi1 = new Catridge("Sonic", "Origin Games", 134, 5);
- koleksi1.setOwn(true);
- koleksi1.setComment("Good!");
- koleksi2 = new Catridge("Fire Rescue Day!", "Moonton", 153, 2);
- koleksi2.setComment("Not Bad");
- koleksi2.setOwn(false);
- game1 = new DVD("American Pie", "Acshool", 100, 1000000);
- game1.setOwn(true);
- game1.setComment("Incridible");
- game2 = new DVD("Final Destination", "Matscul", 123, 550000);
- game2.setOwn(false);
- game2.setComment("Recommended");
- database.addItem(koleksi1);
- database.addItem(koleksi2);
- database.addItem(game1);
- database.addItem(game2);
- database.cetakList();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement