title: Java Assignment ( Changing string value in if statement)
body: <p>This is the assigment. I believe I am only allowed to use If and else statements</p>
  
  <blockquote>
    <p>The following algorith yields the season (Spring, Summer, Fall, or
    Winter) for a given month of the day.</p>
  
  <pre><code>IF month is 1,2, or 3, season = "Winter
  Else if month is 4, 5, or 6, season = "Spring"
  Else if month is 7,8, 9, season = "Summer"
  Else if month is 10,11, or 12, season = "Fall"
  If month is divisible by 3 and day &gt;= 21
       If season is "Winter", season = "Spring"
       Else if season is "Spring", season = "Summer"
       Else if season is "Summer", season = "Fall"
       Else season = "Winter"
  </code></pre>
    
    <p>Write a program that prompts the user for a month and day and then
    prints the season, as determined by this algorithm</p>
  </blockquote>
  
  <p>Heres what I got so far. I can't get the last part to get the seasons to change if the month is divisible by 3 and day is above 20.</p>
  
  <pre><code>import java.util.Scanner;
  
  public class Seasons {
  
      public static void main (String[] args){
  
          Scanner in = new Scanner(System.in);
          int month;
          int day;
          String season = null;
  
          System.out.print("Please enter month and day: ");
          month = in.nextInt();
          day = in.nextInt();
  
          if(1 &lt;= month &amp;&amp; month &lt;=3){
              season = "Winter";
              System.out.println(season);
          }
  
          else if (4 &lt;= month &amp;&amp; month &lt;=6){
              season = "Spring";
              System.out.println(season);
          }
  
          else if (7 &lt;=month &amp;&amp; month &lt;=9){
              season = "Summer";
              System.out.println(season);
          }
  
          else if (10 &lt;= month &amp;&amp; month &lt;= 12){
              season = "Fall";
              System.out.println(season);
          }
  
  
          if ( ((month % 3 == 0) &amp;&amp; (21 &lt;= day)){
              if (season.equals("Winter")){
  
              }
  
              else if (season.equals("Spring")){
                  season = ("Summer");
              }
  
              else if (season.equals("Summer")){
                  season = "Fall";
              }
  
              else {
                  season = "Winter";
              }
  
  
          }
      }
  }
  </code></pre>