Is the glass half empty or half full?

  • 4
  • Locked
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
You can't complete this task, because you're not signed in.
Comments
  • Popular
  • New
  • Old
You must be signed in to leave a comment
This page doesn't have any comments yet