Skip to main content
clarified the question, deleted the title repeated in description
Source Link

Why can't I use switch statement on a String?

Why can't I switch on a String?

Is this functionality going to be put into a later Java version?

Can someone explain why I can't do this, as in, the technical way Java's switch statement works?

Why can't I switch on a String?

Why can't I switch on a String?

Is this functionality going to be put into a later Java version?

Can someone explain why I can't do this, as in, the technical way Java's switch statement works?

Why can't I use switch statement on a String?

Is this functionality going to be put into a later Java version?

Can someone explain why I can't do this, as in, the technical way Java's switch statement works?

Copy edited.
Source Link
user3453226
user3453226

Why can't I switch on a StringString?

Is this functionality going to be put into a later Java version?

Can someone point me to an article, or themselves explain whywhy I can't do this, as in, the technical way Java's switchswitch statement works?

Why can't I switch on a String?

Is this functionality going to be put into a later Java version?

Can someone point me to an article, or themselves explain why I can't do this, as in, the technical way Java's switch statement works?

Why can't I switch on a String?

Is this functionality going to be put into a later Java version?

Can someone explain why I can't do this, as in, the technical way Java's switch statement works?

Question Protected by CommunityBot
deleted 8 characters in body; edited title
Source Link
bjb568
  • 11.5k
  • 11
  • 53
  • 73

Switch Statement with Strings in Java Why can't I switch on a String?

Why can't I switch on a String in Java?

Is this functionality going to be put into a later Java version?

Can someone point me to an article, or themselves explain why I can't do this, as in, the technical way Java's switch statement works?

Switch Statement with Strings in Java

Why can't I switch on a String in Java?

Is this functionality going to be put into a later Java version?

Can someone point me to an article, or themselves explain why I can't do this, as in, the technical way Java's switch statement works?

Why can't I switch on a String?

Why can't I switch on a String?

Is this functionality going to be put into a later Java version?

Can someone point me to an article, or themselves explain why I can't do this, as in, the technical way Java's switch statement works?

added 119 characters in body; edited tags; added 2 characters in body
Source Link
Alex Beardsley
  • 21.2k
  • 15
  • 56
  • 67
Loading
added 199 characters in body
Source Link
Alex Beardsley
  • 21.2k
  • 15
  • 56
  • 67
Loading
Source Link
Alex Beardsley
  • 21.2k
  • 15
  • 56
  • 67
Loading