Switch statement just returning the last case

前端 未结 4 862
[愿得一人]
[愿得一人] 2021-01-24 00:52

Switch statment fix: The switch statement is only returning the last case i.e case 4, \"#0R0dfdf0FF\". how can i fix this so the text view shows the the one cli

4条回答
  •  灰色年华
    2021-01-24 01:26

    You need a break when you don't have a return otherwise it causes fall through

提交回复
热议问题