I get the error int cannot be converted to boolean?c

The Java greater than or equal to operator is >=, not =>.

Where you did:

if (user => 19) ...

You should have done:

if (user >= 19) ...

If you ever have questions regarding this, check the Java Documentation first.

Leave a Comment