Use string in switch case in java?

Java does not support String in switch/case (version 7 does or will though, not 100% sure). But you can achieve the desired result by using an enum.

Learn to use else. Considering the same value will never be equal to two unequal strings at once...you're basically choosing between 5 paths now, rather than...16 (of which only 5 will ever really happen).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions