else if synatx in java code example
Example: if statement java
int x = 3;
if (x == 3) {
// block of code to be executed if the condition is true
}
int x = 3;
if (x == 3) {
// block of code to be executed if the condition is true
}