posted 3 years ago
Hey guys, this is my first post on coderanch. I'm using Head First Java 2nd ed right now and this problem is from chapter 5. I'm having trouble understanding why this code outputs what it does. I see why it outputs "0 4" on the first loop, but why isn't it "1 3" on the second loop? I'm pretty much stuck at that point. Thanks in advanced.