title: if-else-else if
body: <p>I am a beginner in java and i am doing some practiceit questions to brush up on my java skills.</p>
  
  <p>Write a method named season that takes two integers as parameters representing a month and day and that returns a String indicating the season for that month and day. Assume that months are specified as an integer between 1 and 12 (1 for January, 2 for February, and so on) and that the day of the month is a number between 1 and 31.</p>
  
  <p>If the date falls between 12/16 and 3/15, you should return "Winter". If the date falls between 3/16 and 6/15, you should return "Spring". If the date falls between 6/16 and 9/15, you should return "Summer". And if the date falls between 9/16 and 12/15, you should return "Fall".</p>
  
  <pre><code>public static String season(int month,int day){
     
      if(month&gt;=9 &amp;&amp; month&lt;=12 &amp;&amp; day==15||day==16){
          return "Fall";
      }
      else if (month&gt;=4 &amp;&amp; month&lt;=6 &amp;&amp; day==16||day==15){
         return "Spring";
       }
      else if (month&gt;=6 &amp;&amp; month&lt;=9 &amp;&amp; day==16||day==15){
           return "Summer";
       }
       else {
            return"Winter";
  
           
        }
  
    
  }
  </code></pre>
  
  <p>But i'm not getting the output.But it seems right to me.Anyone can tell me where did i go wrong?</p>