Re: Simple syntax question
- From: Frank Stallone <askMe@xxxxxxxxxxx>
- Date: Sun, 06 Apr 2008 04:30:50 -0500
Why not use or as suggested by Robert?
Maybe I need to wake up a little more but if you want str to equal
"seven" then why not just test for that?
On Thu, 28 Feb 2008 18:09:33 -0500, somebody wrote:
Is this the best we to conditionally do something if str is NOT equal to
one, two, three, or four, AND mystr is NOT equal to X? For example, I
want the if block to execute if str equals "seven" and mystr equals "Y"
if ( !(str.equals("one")) && !(str.equals("two")) &&
!(str.equals("three")) && !(str.equals("four")) &&
(mystr.compareTo("X") != 0) )
{
Then do this...
spammer -> enquiries@xxxxxxxxxxxxxxxxxxxxxxx
.
- Prev by Date: Re: Higher Volume?
- Next by Date: Re: Java IDE for Beginners
- Previous by thread: Higher Volume?
- Next by thread: Re: Java IDE for Beginners
- Index(es):
Relevant Pages
|
|