title: Getting an error when I make a switch with a string
body: <p>I am getting an error message when I try to make a switch with a String. Here is the error:</p>
  
  <pre><code>incompatible types found: 
  java.lang.String 
  required: int 
  switch(monthName){
  </code></pre>
  
  <p>This makes it seem like I can only make a switch with an int but I was pretty sure that in the more recent Java versions you can make a switch with a String. Here's the code that is giving me the error:</p>
  
  <pre><code>switch(monthName){
          case "December"://Always has 31 days
              daysLeft = 31;
              daysLeft -= dayOfMonth;
              break;
          case "November"://Always has 30 days
              daysLeft = 61;
              daysLeft -= dayOfMonth;
              break;
          case "October"://Always has 31 days
              daysLeft = 92;
              daysLeft -= dayOfMonth;
              break;
          case "September"://Always has 30 days
              daysLeft = 122;
              daysLeft -= dayOfMonth;
              break;
  </code></pre>