1.if结构:
if(条件){
代码块
}
2.随机产生数:
int randon =(int)(Math.random()*10);
3.多重if选择结构:
if(条件1){
代码块1
}else if (条件2){
代码块2
}else{
代码块3
4.嵌套if选择结构:
if(条件2){