Conditional and Loop Control Statements
Conditional statements
The if Statement
Use the if statement to specify a block of Java code to be executed if a condition is true.
Syntax
if (condition) {
// block of code to be executed if the condition is true
}
Note
if is in lower...
kingbond470.hashnode.dev5 min read
Mausam Singh
Product Manager | Ex-SDE at Meesho | You need to accept the fact that you’re not the best and have all the will to strive to be bet
If you have to understand the break, return and continue statement in a loop then break used to come out of loop/statements, continue used to left the statement after it and continue next iteration and return used to come out of functions. It can be either main() or user defined function. You can learn more about functions. Refer This