codeGK
Code it ALL
If in Java - CodeGK

♦ If in Java

♣ Example1: If in Java

"if" code block is executed when the corresponding if condition block is holding boolean value true.
In this example, .
Example
Input:
Output:
If_else