只是想知道我是否可以在带有switch语句的java中做这样的事情?
switch(a && b){ case 1: // case 2: // }
java switch-statement
java ×1
switch-statement ×1