Hello,
I’m having a bit of an issue, and I’m wondering if it might be something simple ... I’m using IntelliJ and
Java 1.8 (I verified this under settings / platform settings / SDK and saw java 1.8 everywhere), yet this code throws an error right at line 9 below ... it red underlines the variable name and reports this error:
Error:(257, 16) java: strings in switch are not supported in -source 1.6
(use -source 7 or higher to enable strings in switch)
Here is the code:
Any idea’s as to why I’m being told my Java is too old when it isn’t? And before someone mentions the “break;" in each case, know that I tried this with and without the breaks and I get the same results.
Thank you,
Mike Sims