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

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
Oct 10th, 2014
Oct 10th, 2014
Oct 21st, 2017
Mark as Final Answer
Unmark as Final Answer
Final Answer

Secure Information

Content will be erased after question is completed.

Final Answer