1.顺序结构
2.分支结构
1.if
2.if else
3.switch
注意:
1.不能做swtich的参数的数据类型有四种:long,double,falout,boolean
2.default与case没有一定的顺序要求
3.不要丢失break
4.能做swtich的参数的数据类型有:short,int,byte,String,char,枚举

3.循环结构
1.while
参数只能是布尔类型



参数只能是布尔类型

6876
911

被折叠的 条评论
为什么被折叠?