The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
September 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:

Thank you!! One more question...

Posted by Joe on October 02, 2000 at 1:02 AM

Ah, I got it!!
Just one more question..
What's the difference between i++ and ++i or i-- and --i,
Say:

class Num {
int num = 10;
num++; //I will get:11
num++; // now 12
--num; //What about this?
}

Thank you very much!!

Joe



Replies:

Sponsored Links



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