Can `if` statements be used with non-boolean expressions?
Yes, Java allows `if` statements with non-boolean expressions, and it automatically converts them to a boolean context.
I'm a bit disappointed, as `if` statements require an explicit boolean condition and donâ€™t perform automatic conversions.
Can you explain what would happen if a non-boolean expression is used in an `if` condition?