A simple shopping cart in java