Exemplo n.º 1
0
 public void addPenalty(int price) throws IOException, Exception {
   Penalty pen = new Penalty(price);
   myTransaction.addTransactionItem(pen);
 }
Exemplo n.º 2
0
 public void addMovie(String barcode)
     throws SQLException, ClassNotFoundException, IOException, MovieNotFoundException, Exception {
   MovieInterface movie = new MovieInterface(barcode);
   myTransaction.addTransactionItem(movie);
 }