do you need to end if statements 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
}