+ 1
I wrote an if statmate with an equal sign and it gave me an error say in it can't be turned into a boolean.
if (answer = 18) { System.out.println("your a teen, get it, 'a' teen"); ./Playground/Program.java:39: error: incompatible types: int cannot be converted to boolean if (answer = 18) { ^ 1 error
5 Réponses
+ 5
== is comparison
= is assignment
+ 1
CyberX And CorruptedTiger No, it isn’t.
0
now that's just embarrassing
0
Wilbur Jaywright take a joke
0
CyberX And CorruptedTiger Don’t make fun of beginners trying to learn.