
// UseDome1.java
// Andrew Davison, Nov. 2018, ad@fivedots.coe.psu.ac.th

public class UseDome1
{
  public static void main(String[] args) 
  {
    Database db = new Database();

    CD frankie = new CD("A Swingin' Affair", "Frank Sinatra", 16, 64);
    db.addCD(frankie);
    frankie.setOwn(true);
    frankie.setComment("my favorite Sinatra album");

    db.addCD( new CD("morrison hotel", "the doors", 11, 109));
    db.addCD( new CD("dark side of the moon", "pink floyd", 9, 100));

    db.addDVD( new DVD("citizen kane", "welles", 97));

    DVD bro = new DVD("O Brother, Where Art Thou?", "Joel & Ethan Coen", 106);
    bro.setComment("The Coen brothers' best movie!");
    db.addDVD(bro);

    db.addDVD( new DVD("star wars: a new hope", "lucas", 100));

    db.list();
  }  // end of UseDome1()

}  // end of UseDome1 class
