How can we check if a variable called myNumber is not equal to 64?

myNumber != 64myNumber == !64!myNumber.equals(64)

Sweet! We can use the != sign to check that. The ! sign is used to invert boolean values and equals() (as we'll discover) only works for objects, not primitive types.

Oh noes! We can use the != sign to check that. The ! sign is used to invert boolean values and equals() (as we'll discover) only works for objects, not primitive types.