判断
if
格式:
if(){
}
elase if
格式:
if(){
}elase if(){
}
swhile
格式:
switch(){
case 变量的可能值1:功能语句;break
default:功能语句;break
}
循环
for
格式:
for(){
}
while
格式:
while(){
}
do while
格式:
do{
先运行一次
}while(){
}
## 循环嵌套
循环语句内再加循环语句
示例:
*for(){
for(){
}
}
*
循环控制语句
break
continue 跳出当次循环
return 结束当前方法