Conditional Constructs :-
--> Switch :=
--> If :=
--> If Else :=
--> If - Else - If :=
--> Nested If :=
--> While :=
--> Do While :=
--> For Each :=
- Switch
- If
- If Else
- If Else If ladder
- nested If
Looping :-
- While
- Do While
- For
- For each
--> Switch :=
switch(expression){
case 1:
statements;break;case 2:
statements;break;....
default:
statements;
}
--> If :=
if(condition){
statements;}
--> If Else :=
if(condition)
{}else
{}
--> If - Else - If :=
if(){
}else if(){
}else{
}
--> Nested If :=
if(){
if()}
{}
--> While :=
while(condition){
}
--> Do While :=
do{}while(condition)--> For :=
for(start, end, condition){}
--> For Each :=
for(String welcome:array)
System.out.println(welcome);