if-else keywords in Java

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 […]

Share this article on