[OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:By the time you get to if (x ==1), x is no longer 1. You can verify this by adding System.out.println(x) to the line before the "if."
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors