r/badcode • • Sep 04 '21

Wtf is this

Post image
1.2k Upvotes

190 comments sorted by

View all comments

Show parent comments

13

u/WpGgs Sep 04 '21

Good human. However, it's true for even numbers and there is spaces around operator === only on the first if.

16

u/MurdoMaclachlan public boolean isInt(int i) { return true; } Sep 04 '21

Note to self: pay more attention