It looks like you're new here. If you want to get involved, click one of these buttons!
Is it possible to check a string in a Java Switch statement? I tried a lot, but was not successful. Please help.
This has been a problem until JDK7.
Now you can do it with JDK7. Please refer this document to get the best example for that.
If you are working on an old version of Java you have to use an Enum.
For more details and practice programs on switch please follow the link http://java.meritcampus.com/t/61/Switch-statement