-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Per,

Per Jonsson wrote:
> You have a little error, you are using ++i instead of i++ on:
> 
>    for(int i = 0; i < 5; ++i)
> 
> The first iteration is a 1 because the increament is done before instead
> of after the looping.

I disagree. The loop's update expression is evaluated only after the
body, so ++i and i++ have the same effect. This is true in any language
that has unary increment operators and for-loops of this form.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF9BRj9CaO5/Lv0PARAlWMAKCt/d0QOPHxXkauLSHZvKIpzoNN7gCff9rA
+/0SOGsTvVIkZ+oflI76jYE=
=j5YA
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to