Here is a 2 part script taken from Head First
Java:
And the output:
helloooo...
helloooo...
helloooo...
helloooo...
10
Now I went through and tried to "run" this program myself and here is how I did it:
(I hope this shows up ok).
Clearly I am wrong in adding these values up. I realize this may be a difficult question to answer online, but could someone point to where I went wrong? Thanks in advance
Edit by mw: Added code tags to formatted "table."
[ July 16, 2007: Message edited by: marc weber ]