In C/C++, this is another good one:
Wow im tired took me 2 passes to see it
It's possible to let the compiler detect it with full warnings on sometimes. Java specifically disallows this sort of thing since boolean expressions must be of type boolean. But it's bad for a few reasons because a) the if will always succeed and b) it will corrupt the value of z at the same time.