
http://www.javatpoint.com
조건문
if , else if , else
if(boolean_expression){
//실행문;
}else if(boolean_expression){
//실행문;
}else{
//실행문;
}
switch
ex)
int grade = 1;
switch(grade){
case 1: 실행구문;
break;
case 2: 실행구문;
default: 실행구문;
}
반복문
for...