This post of java learning course is focused on java switch statement and java for statement.
The java course syntex for java switch statement and java for statement is listed below.
Switch Statement
Switch statement helps us to select/choose out of many choices.
switch (expression)
{
case var1:statement1;
:break;
case var2:statement2;
:break;
case var3:statement3;
:break;
case var4:statement4;
:break;
case var5:statement5;
:break;
case var6:statement6;
:break;
case var7:statement7;
:break;
case var8:statement8;
:break;
default: statement9;
}
For loop
This is a self contained looping statement that contain initialisation/initial value,termination condition & increment/decrement
for(var declaration-cum initialization;condition;increment/decrement)
{
some codes
}
The java course syntex for java switch statement and java for statement is listed below.
Switch Statement
Switch statement helps us to select/choose out of many choices.
switch (expression)
{
case var1:statement1;
:break;
case var2:statement2;
:break;
case var3:statement3;
:break;
case var4:statement4;
:break;
case var5:statement5;
:break;
case var6:statement6;
:break;
case var7:statement7;
:break;
case var8:statement8;
:break;
default: statement9;
}
For loop
This is a self contained looping statement that contain initialisation/initial value,termination condition & increment/decrement
for(var declaration-cum initialization;condition;increment/decrement)
{
some codes
}
0 comments:
Post a Comment
...