判断
if-else
// if-else
if(a > 10) {
System.out.println("a大于10");
}else{
System.out.println("a小于10");
}switch
// Switch
switch(a){
case 10:
System.out.println("a = 10");
break;
case 11:
System.out.println("a = 11");
break;
default:
System.out.println("没有匹配项");
}for循环
while循环
dowhile循环
break
continue(跳转控制语句)
Last updated

