can someone help me or tell me why I am getting these errors. where I have gone wrong again

public static void main(String[] args) {
      Scanner read = new Scanner (System.in);

       double taxable_income, income, tax, sum;

       System.out.println("Please enter taxable income");
       taxable_income = read.nextDouble();

       System.out.println("Please enter income");
       income = read.nextDouble();

       if(taxable_income >=100&&<=446199)
       {
          System.out.println("print taxable_income is nil");
       }

       else if(taxable_income >446299&&<1789399) - am getting a red line here        
       {
            tax = (income - 446200)*30;


             System.out.println("print tax payable");  
        }

       else if(taxable_income >1789400<2949944)
       {
            tax = (income -1789400)*35 + 4119;

           System.out.println ("taxable payable");
        }

         if(taxable_income >2950000&&<4578799) _ am getting a red line here
         {

             tax = (income - 2950000)* 46 + 8656;
             System.out.println("print taxable payable");


         }      
         else if(taxable_income >4578800)- getting a red line here 
         {
            tax = (income - 4578800)* 60 +  1117900;
             System.out.println("print taxable payable ");

        }

any help would be very much appreciated. thanks a lots

in the line 17
else if(taxable_income >446299&&<1789399)

are u comparing taxable_inconme with 446299
and.... 1789399 with .... ??????

in the line 25 too, is the same error with the line 32
In java comparison need explicitly values... for example...
if( x < a && b ) ... i understand your logic but java not! then is bad!
i understant that you mean but need explain it to java ... how?
if(x > a && x < b) //is good ...
if u have more values is the same
if(x < b && x < c && x < y) ...

You have to add the taxable_income after the boolean operator
like this

 if(taxable_income >=100 && taxable_income <=446199)
       {
          System.out.println("print taxable_income is nil");
       }

can someone help me or tell me why I am getting these errors.

without knowing what errors you get ... no.

looking at your code, I doubt those are the only lines you get a red line

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.