This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes operators Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "operators" Watch "operators" New topic
Author

operators

ajit a
Greenhorn

Joined: Apr 17, 2002
Posts: 7
hi all ..
how to resolve questions like
int a = 6; b = 7,c;
c = a++ + ++b;
thx in advance
... @jit
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
Just evaluate the operands from left to right, like this:

You can do a search in this forum and find lots of examples like this.
Corey


SCJP Tipline, etc.
Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205
ajit a:
Welcome to JavaRanch. Please change your name to comply with the naming policy to which you agreed when you registered here..

For your publicly displayed name,
use a first name, a space, and a last name.

You can change your name here:
here

You can also find the naming policy here:
http://www.javaranch.com/name.jsp
Thank You!


Rob
SCJP 1.4
 
GeeCON Prague 2014
 
subject: operators