`java (0 % 2 != 0) == false`
问题 The part I keep getting stuck on is boolean(0 % 2 !=0) == false. I mean if 2 goes into 0, 0 times then the remainder would be 2, and 2 does not equal 0. So it should be true. Yet but when I put the boolean in my java program it is treating it as false. Anyone know why? The only logical answer I can wrap my head around is that maybe integers go into 0 and infinite number of times and so are recognized as false, anyone? 回答1: There are two steps: 0 % 2 evaluates to 0 . 0 != 0 evaluates to false