Simple item checkout system in Java