This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
It's a bit confusing this thing, but i got to the following conclusion:
z: 0 x: 1 y: 0 -> in the if condition, x is incremented z: 1 x: 2 y: 0 -> again, the same thing z: 2 x: 3 y: 1 -> x is incremented again, so the first part of the teste is true, making y also be incremented (just remembering here that y was not incremented before because && does not check the second statement if the first is false) z: 3 x: 4 y: 2 -> same situation explained in the las step z: 4 x: 6 y: 3 -> now we have the if scope executed so x is incremented 2 times.
Think its that!
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Doubt In Kathy& Bates book questions at page 198