int i = 0; boolean b = true; System.out.println(b && !(i++ > 0))
When I compile the above code I
You want to use ++i if you want to increment i and return the incremented value. i++ returns the non incremented value.
++i
i++