Пример #1
0
 public void addPenalty(int price) throws IOException, Exception {
   Penalty pen = new Penalty(price);
   myTransaction.addTransactionItem(pen);
 }
Пример #2
0
 public void addMovie(String barcode)
     throws SQLException, ClassNotFoundException, IOException, MovieNotFoundException, Exception {
   MovieInterface movie = new MovieInterface(barcode);
   myTransaction.addTransactionItem(movie);
 }