Q:

Why doesn't this operational value work?

I'm writing an assignment for one of my classes, and i'm trying to use mutiple boolean conditions for the first time. the specific problem is that 
if(gender.equalsIgnoreCase("M")) && (activity.equals("0"));
{
    System.out.println("Male");
}

is returning an error, specifically "Java; illegal start of expression"
Is there a reason for this? Both variables exist, so that is not the issue (I'm pretty sure)

A:

change this line :
if(gender.equalsIgnoreCase("M")) && (activity.equals("0"));

to
if(gender.equalsIgnoreCase("M") && (activity.equals("0"))

if(gender.equalsIgnoreCase("M")) && (activity.equals("0"));
Extra parenthesis and semicolon is what you don't need.

