Use string in switch case in java

前端 未结 13 1773
盖世英雄少女心
盖世英雄少女心 2020-12-01 07:30

I need to change the following if\'s to a switch-case while checking for a String, to improve the cyclomatic complexity.<

13条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-01 07:46

    Java does not support Switch-case with String. I guess this link can help you. :)

提交回复
热议问题