Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

j++ or ++j in for loop

807606May 18 2007 — edited May 19 2007
Is there much of a difference between ++j and j++ within a for loop decleration?

eg for(int j; j<max; ++j){}

I have being some practise algorythms over at topcoder, and looking at some of the top scoring entries they all seem to use ++j, where as i use j++.

I know i may be reading to much into this, and couldn't see what effect this would have on the written alogrythms, but just wanted to check if i was missing something obvious!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 16 2007
Added on May 18 2007
35 comments
1,508 views