title: switch statement using char in the case condition?
body: <p>I'm trying to write a switch statement that uses a char to represent each case. In my textbook the examples show I can use a char to do this but when I compile my program I get this:</p>
  
  <pre><code>    StudentInvoiceListMenuApp.java:54: error: incompatible types
          case 'R':
               ^
      required: String
      found:    char
      1 error
  </code></pre>
  
  <p>This is my code: </p>
  
  <pre><code>    switch (inputCode) {
  
          case 'R':
              System.out.println("\nEnter file name:");
              fileName = menuApp.nextLine();
              if (inputCode.trim().length() == 0) {
                  break; // no file name entered
              }
  </code></pre>