J
John
It took me a while to get to the point where I could think "outside theChris said:[I sent this yesterday, but it doesn't seem to be showing up on my server.
I'll try one more time. Apologies to anyone who sees it twice -- doubly so to
John if the reason is that I emailed it to him instead of posting it]
John wrote:
Personally, I don't see why your professor would restrict you in how you
can do your code, unless he/she was trying to get you to "think outside
the box".
I suspect that a large part of this particular exercise is about understanding
boolean-valued expressions, as something more general than the XXX that goes in
an if (XXX) test.
-- chris
box" and realize there were other ways to accomplish what was being
asked besides using a conditional. I was actually quite impressed with
the fact that I was able to find another way without having to look too
far into it. I'm rather curious why the jdk doesn't have a method for
integers called returnParity(). It would have made the task much easier.