java switch 分支结构中一个case可以跟多个值吗
switch(month){ case 1|3|5|7|8|10|12: System.out.println(month+"月有31天"); break; case 4|6|9|11: System.out.println(month+"月有30天")...
本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。
switch(month){ case 1|3|5|7|8|10|12: System.out.println(month+"月有31天"); break; case 4|6|9|11: System.out.println(month+"月有30天")...
本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。