I wonder if it okay to write a big equation in System.out like this or Seperate

else if (earn>=200 && earn<=693)
					{
					System.out.println("Excess Earning" + (earn-200));
					excess = (8.40+((earn-200)*.15));
					System.out.println("Tax Withholding" + excess);
		        	}

nothing...

System.out.println("result---->"+(8.40+((240-200)*.15)));

Thank musthafa for help newbie (me) again. It end up compiled succesful, I will try read it carefully next time. Sorry for such a simple question.

hey


you do here
excess = earn-200; then again you doing..


System.out.println((8.40+(((excess-200))*.15)));

then you get wrong

if you do directly

as per your output needs...

System.out.println((8.40+(((excess-200))*.15)));

without doing this excess = earn-200;

you get correct..