What is 'Yes' in your source? If you want to switch on 'yes_or_no' against String literals, you need to write
case "Yes":
At least, that's my guess - I'm not on Java 7 either.