title: Error showing int is equal to a boolean object
body: <p>That's my confirmBooking method and im trying to check whether age is equal to a student or child so i can apply discounts wherever needed using an if statement. Also my boolean value is because i checked whether the age given was between some given numbers to determine whether it was a child or student. I get this error Customer.java  [line: 41]
  line 41 is    <code>if(age == (isStudent() || isChild()))</code></p>
  
  <blockquote>
    <p>Error: The operator == is undefined for the argument type(s) int,
    boolean</p>
  </blockquote>
  
  <p>Could someone explain why?</p>
  
  <pre><code> public double confirmBooking(){
      double standardTicketPrice = 56.0;
      double standardMealPrice = 30.0;
  
      if(age == (isStudent() || isChild())){
      return standardTicketPrice / 2.0;
      }else{
      return standardTicketPrice * (20.0/100.0); 
      }
  
      if(age.equals(isChild())){
        return standardMealPrice / 2.0;
      }else{
       return standardMealPrice * (10.0/100.0); 
      }
    }// end method confirmBooking
  </code></pre>