I am a new programmer in Java and while programming I faced the following problem. I am trying to use switch statement on String but it gives compilation error. If any one suggest me how to use String in switch-case statement , it will be helpful to me.
niamul 0 Newbie Poster
jwenting 1,889 duckman Team Colleague
paradox814 1 Posting Whiz
niamul 0 Newbie Poster
jwenting 1,889 duckman Team Colleague
cyberowl 0 Newbie Poster
jwenting 1,889 duckman Team Colleague
cyberowl 0 Newbie Poster
Fhernd commented: It is clear. +0
jwenting 1,889 duckman Team Colleague
cyberowl 0 Newbie Poster
jwenting 1,889 duckman Team Colleague
rLh 0 Newbie Poster
Ficke 0 Newbie Poster
staneja 0 Junior Poster in Training
manojdesai 0 Newbie Poster
Cudmore 9 Junior Poster in Training
jwenting 1,889 duckman Team Colleague
nnprasad2000 0 Newbie Poster
Boyett Martinet 0 Newbie Poster
Boyett Martinet 0 Newbie Poster
BestJewSinceJC 700 Posting Maven
rameshrokz 0 Newbie Poster
pranalib 0 Newbie Poster
sadaf Nasim 0 Newbie Poster
Tsorf_Dev 0 Newbie Poster
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
Tsorf_Dev 0 Newbie Poster
jon.kiparsky commented: Don't post broken code! +0
jon.kiparsky 326 Posting Virtuoso
jon.kiparsky 326 Posting Virtuoso
Tsorf_Dev 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.