if (estimates() && jobIsClosed() || !jobIsClosed()) {}
I have these accessors (estimates() jobIsClosed()). Do I need to parenthesize
the second part of this to be correct:
if (estimates() && (jobIsClosed() || !jobIsClosed())) {}
the first example is working as I intend, but I originally had:
if (estimates() && jobIsClosed() || estimates() && !jobIsClosed()) {}
I was reading and searching on Java precedence and couldn't find anything that
specifically answered the question. If I leave my code as the first example,
will it come back to bite me later? or is the second example more correct?
Ted
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]