title: String in switch java
body: <pre><code>switch(title)
     {
      case "Return":
            returnBooks();
            break;
    }
  </code></pre>
  
  <p>strings in switch are not supported in -source 1.6, use -source 7 or higher to enable strings in switch</p>
  
  <p>So, I have already installed JDK7, Why compiler show this message and giving an error while on compiling?</p>
  
  <p>I am using NetBeans</p>