import java.util.Scanner; public class ComputeTax2 { public static void main(String[] args) { //Create a Scanner Scanner input = new Scanner(System.in); //Prompt the user to enter filing status System.out.print( "Would You like to print a Tax table of 50000 to 60000 1-Yes, 2-N: "); int status = input.nextInt(); // double taxableIncome=0; if (status == 1) { printTable(); } else { System.out.println("Come back when you want to print in the 50k to 60k range!"); System.exit(0); } } public static void printTable() { double taxableIncome = 50000; double endingJob = 60000; System.out.println("Taxable\tSingle\tMarried\tMarried\tHead of"); System.out.println("Income\tFiler\tJoint\tSeparate\ta House"); while (taxableIncome <= endingJob) { System.out.println(taxableIncome + "\t" + (6000 * 0.10 + (27950 - 6000) * 0.15 + (taxableIncome - 27950) * 0.27) + "\t" + (12000 * 0.10 + (46700 - 12000) * 0.15 + (taxableIncome - 46700) * 0.27) + "\t" + (6000 * 0.10 + (23350 - 6000) * 0.15 + (taxableIncome - 23350) * 0.27) + "\t" + (10000 * 0.10 + (37450 - 6000) * 0.15 + (taxableIncome - 37450) * 0.27) + "\n"); taxableIncome = taxableIncome + 50; } } } I cant really tell if this table actually prints the header is there a way to verify that the first 2 println statements occur?