Simple syntax question
- From: somebody <some@xxxxxxxx>
- Date: Thu, 28 Feb 2008 19:58:23 -0500
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? I can't seem to
find anything like a str.unequal. 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...
-Thanks
.
- Follow-Ups:
- Re: Simple syntax question
- From: Roedy Green
- Re: Simple syntax question
- From: Joshua Cranmer
- Re: Simple syntax question
- From: Knute Johnson
- Re: Simple syntax question
- Prev by Date: Re: New technology, old idea.... why not?
- Next by Date: Re: Simple syntax question
- Previous by thread: Socket with setSoTimeout() never times out
- Next by thread: Re: Simple syntax question
- Index(es):