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("o ne")) && !(str.equals("t wo")) &&
!(str.equals("t hree")) && !(str.equals("f our")) &&
(mystr.compareT o("X") != 0) )
{
Then do this...
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("o ne")) && !(str.equals("t wo")) &&
!(str.equals("t hree")) && !(str.equals("f our")) &&
(mystr.compareT o("X") != 0) )
{
Then do this...
Comment