Code:
import java.util.Scanner;
public class IRSTaxes {
/**
* @param args
* @param taxes
*/
public static void main(String[] args, double taxes) {
// TODO Auto-generated method stub
System.out.println("Enter marital status (1=single, 2=married) ");
Scanner scanner= new Scanner(System.in);
int marital = scanner.nextInt();
if (marital==1);
{
Scanner sc=new Scanner(System.in);
double salary=sc.nextDouble();
}
}
}
this code when i run the program it runs as
java.lang.NoSuchMethodError: main
Exception in thread "main"
please help me why this is doing this as i am trying to code an IRS java program

