title: Have JDK and JRE8 but still can't use switch with strings
body: <p>Switch statements with strings were introduced in JDK 7 and I have JDK 8 and JRE 8 but when I attempt to use a switch statement with strings I get the following error:</p>
  <blockquote>
  <p>Exception in thread &quot;main&quot; java.lang.Error: Unresolved compilation problem:</p>
  <p>Cannot switch on a value of type String for source level below 1.7. Only convertible int values or enum variables are permitted</p>
  </blockquote>
  <p>What should I do?</p>