That is not an error, the last item in the (for(;;here)) is executed after the loop code is executed - the "side effect" only has effect within the for statement. (;;(side effect only visible inside statment in here))

ie:  for(;;++i)  ad for(;;i++)  are equivalent

ie:  for(;;val = ++i)  ad for(;;val = i++)  are *NOT* equivalent


At 05:36 3/11/2007, you wrote:

Hi!

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.




---------------------------------------------------------------------
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