|
// Java开关分支判断是否做核酸
|
|
// 每周一、四、六常态化核酸
|
|
package xiangmu;
|
|
|
|
public class Ceshi {
|
|
public static void main(String args[]) {
|
|
int xingqi = 4;
|
|
switch(xingqi) {
|
|
case 1:
|
|
case 4:
|
|
case 6:
|
|
dayin("今天做核酸");
|
|
break;
|
|
default:
|
|
dayin("今天不做核酸");
|
|
}
|
|
}
|
|
public static void dayin(String zifuchuan) {
|
|
System.out.println(zifuchuan);
|
|
}
|
|
}
|