Code example for Scanner

Methods: nextDoublenextInt

0
 * @author springtree 
 */ 
import java.util.Scanner; 
public class Q3_13 { 
    public static void main(String[] args)  {
        Scanner input = new Scanner(System.in);
         
        System.out.println (
                "0-single filer, 1-married jointly, \n" + 
                "2-married separately, 3-head of household \n" + 
                "Enter the filing status: "); 
        int status = input.nextInt();
         
        System.out.println("Enter the taxable income: ");
        double income = input.nextDouble();
         
        double tax = 0;
         
        if(status == 0) {
            if (income <= 8350)    
Connect your IDE to all the code out there  Get Codota for Java