Quick java IF question

Soldato
Joined
11 Dec 2004
Posts
3,871
Hi all,

Just wanted to ask a quick question, I have googled and checked the sun jaca forums but cant really find the answer.

I want to have two conditions that must be met before the if statement is carried out

where as this is what it would like with just one...

if (variable_one.compareTo("*") == 0)
{
do this
}

I want to do it with two conditions like this, but I dont know how to write it...

if (variable_one.compareTo("*") == 0) AND (variable_two.compareTo("*") == 0)
{
do this
}

Sorry for the noob question :o

Thanks
 
Back
Top Bottom