about summary refs log tree commit diff
path: root/usth/ICT2.2/labwork/3/Java/ShoppingCartTest.java
blob: 315f9f49531efb1296d64fd68af272fc39cec7e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class ShoppingCartTest
{
  public static void main(String... args)
  {
    ShoppingCart cart = new ShoppingCart();
    System.out.println(cart);
    cart.addToCart("foo");
    cart.addToCart("bar");
    cart.addToCart("baz");
    System.out.println(cart);
    cart.removeFromCart("bar");
    System.out.println(cart);
    cart.checkOut();
    System.out.println(cart);
  }
}