I am doing a POC on Java 7 new features. I have code to use String in switch statement and it works. I want to make it work in case insensitive also. Is there a way to check
no, but you could switch on s.toUpperCase(). so:
s.toUpperCase()
switch (s.toUpperCase()) { //same as before }
and while we're nitpicking, you better upper-case things in the english locale to avoid issues with turkish