The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Hi, Kishori

Posted by Belle on December 08, 2000 at 4:49 AM

Hi,
I read the message that you posted in Sept, talking about i++ and ++i, etc. I like that!! But I have one question:
say if I have an array, length = 10, and I have the following:
for (int i=array.length; --i>=0;)
{ ....do something.... }
Does the iteration start from i=9 or i=10 ? I think it starts from i=9. It is confusing me, am I right?
Thanx in advance!!
Belle





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us