Java program simulate a store check out system