title: Java calling a method in a switch
body: <p>so I'm using a getRangedInt method to figure out the user's birth month and date, as well as a Scanner for user input. If they pick February (the prompt asks the user for their birth month number, so 1-12), then I need to change the month's max days to 28 (and so on for the other months with 30 days). I'm trying to use a switch to categorize the months, but when the program is run it simply skips over and the method is never called. The method itself works fine with other examples. What am I missing?</p>
  
  <pre><code>switch (daysInMonth)
      {
          case "1":
          case "3":
          case "5":
          case "7":
          case "8":
          case "10":
          case "12":
              int birthDay = getRangedInt(input,"Enter your birth day: ",1,31);
              break;
          case "2":
              birthDay = getRangedInt(input,"Enter your birth day: ",1,28);
              break;
          case "4":
          case "6":
          case "9":
          case "11":
              birthDay = getRangedInt(input,"Enter your birth day: ",1,30);
      }
  </code></pre>