title: Multiple characters in a switch statement?
body: <p>just to clarify this is hw.</p>
  
  <p>In a project we're doing, a user isn't allowed to enter numbers or special characters (i.e ! @ £ etc)</p>
  
  <pre><code>        char letter;
          String phonetic;
  
          Scanner kb = new Scanner(System.in);
  
  
          System.out.print("Please enter a letter: ");
          letter = letter = kb.next().charAt(0);
  
          switch(Character.toUpperCase(letter))
  {
         case 'A':
              {
                  Dot();
                  Dash();
                  Red();
              }
              break;
  
          case '1,2,3,4,5,6,7,8,9,0':
              {
                 System.out.println('No number input please!');
              }
          break;
  }
  </code></pre>
  
  <p>The error is on </p>
  
  <pre><code>'1,2,3,4,5,6,7,8,9,0' 
  </code></pre>
  
  <p>Eclipse says </p>
  
  <pre><code>invalid character constant 
  </code></pre>
  
  <p>Isn't it really long winded if I have to enter all the numbers manually? </p>
  
  <p>i.e. case '1':  case '2':</p>
  
  <p>even with </p>
  
  <pre><code>case 1,2,3,4,5,6,7,8,9,0: 
  </code></pre>
  
  <p>It won't work.</p>
  
  <p>Is there an shorter way to do this using switch statements? </p>
  
  <p>Thank you!</p>