if-else keywords in Java
- 17th Aug 2017
- 0
- 2525
- how to use if-else keyword in java if-else keyword in java if-else keyword in java with an example
The ” if-else ” construct is used to check if the given condition is met then do something, otherwise do something else. The syntax looks like below: if (boolean condition) { // do something if condition is met } else { // do something else if condition is […]