The main() method has a double glass variable equal to 0.5, which symbolizes a half-filled glass. For the pessimist, it is half empty. For the optimist, it is half full. You need to read a boolean from the keyboard using the nextBoolean() method on a Scanner object. Depending on the input data, roun
Is the glass half empty or half full?