about if statement in java

label Computer Science
account_circle Unassigned
schedule 1 Day
account_balance_wallet $5


i have syntax error here in this statement 

 if (a %2 == 1) && (b%2 == 1)

and this is the error : 

 Error: Syntax error on token "&&", invalid OnlySynchronized

please help me to solve the problem 

Oct 10th, 2014

The statement should be:

if(a%2==1 &&  b%2==1)


Action statements;


Take the braces for the whole if statement.

Oct 11th, 2014

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
Oct 10th, 2014
Oct 10th, 2014
Jun 24th, 2017
Mark as Final Answer
Unmark as Final Answer
Final Answer

Secure Information

Content will be erased after question is completed.

Final Answer