title: String as switch statement
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/338206/switch-statement-with-strings-in-java">Switch Statement with Strings in Java</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to use switch statement on String but it gives compilation error. If any one suggest me how to use String in switch-case statement , it will be helpful to me.</p>