I\'m trying to use IntelliJ (on Mac OS X) to compile some code I wrote using Eclipse. I\'ve attempted to run the following code:
switch (category) { case
Remember that using Strings in switch statements is only supported from JDK 1.7 onwards. The default project settings of IntelliJ might not be using JDK 1.7 as default. Change them from the project settings to JDK 1.7.