Java Syntax






Click on a word to understand it's syntax!


If statement


{

If else statement


{

}

{

}

switch statement

switch {

break;

case value2 :

case value3 :

break;

default :


}

while-loop statement


{

}

do while-loop statement


{


}