title: bad operand types for binary operator. i am getting that error for the below program. please explain why?
body: <pre><code>public class MotorCar extends Vehicle
  {
      private String engCap;
  
      public double getLicenseFee()
      {
          double fee;
  
          if(this.engCap &lt; "1500cc")
          {
              return fee = 750;
          }
          else if(this.engCap &gt; "1500cc" &amp;&amp; this.engCap &lt; "2500cc")
          {
              return fee = 900;
          }
          else(this.engCap &gt; "2500cc")
          {
              return fee = 1250;
          }
  
      }
  
  }
  </code></pre>
  
  <p>what is wrong with this? </p>