三章

   if选择结构

       if(condition1){

statements;

.........

}     

 

     多重if选择结构

     if(condition1){

statements;

........

}else if(condition2){

statements;

........

 }else{

statements;

........

     嵌套if选择结构

           if(condition1){

statements;

..........

        if(condition2){

statements;

..........

}else{

statements;

..........

          }

}else{

  • 产生随机数:int random=(int)(Math.random()*10);//10~0中任意整数
posted @ 2016-07-09 15:43  我的MyBatis  阅读(120)  评论(0编辑  收藏  举报