Demo shopping cart in java