Also
double taxableIncome = 50000;
How's it supposed to know if you're referring to this variable or the parameter of that method with the same name?
Only pass it a parameter if you want
...
Type: Posts; User: javapenguin
Also
double taxableIncome = 50000;
How's it supposed to know if you're referring to this variable or the parameter of that method with the same name?
Only pass it a parameter if you want
...
You have one too many brackets at the end of the main method. Delete one of them.
You've inadvertantly told it to end the class there with that 3rd bracket.
public class ComputeTax {
public static void main(String[] args) {
//Create a Scanner
Scanner input = new Scanner(System.in);
//Prompt the user to enter filing status...
You should have your find a way to later set your taxable income to in your method to return it, otherwise taxable income will be 0.
Also, you don't have an ending ) on your println statement in...
Hmmmm....taxable income will be 0 when you call that method printTable.
You forgot a bracket to end your main method.
public static double printTable(int status, double taxableIncome) {...