if (annual <= lowincome && aChar == 'S')
owe = annual * .25;
else if ( annual > lowincome || annual < medincome && aChar == 'S')
owe = annual * .50;
else if (annual > medincome && Char == 'S')
owe = annual * .75;
else if (aChar == 'M' && annual <= lowincome)
owe = annual *.24;
else if(annual > low income || annual < medincome && aChar == 'M')
owe = annual * .49;
else if(annual > medincome && Char == 'M')
owe = annual * .74;
我希望用户输入他们是已婚还是单身,然后在找出年收入后进行计算。我收到此错误
TaxReturn.java:54: error: ')' expect
if(annual > low income || annual < medincome && aChar == 'M')
^
TaxReturn.java:54: error: not a statement
if(annual > low income || annual < medincome && aChar == 'M')
^
TaxReturn.java:54: error: ';' expect
if(annual > low income || annual < medincome && aChar == 'M')
TaxReturn.java:56: error: 'else' without 'if'
else
^
TaxReturn.java:68: error: class, interface, or enum expected
}
^
5 errors