Nested if Statement in java
Java Programming Language Decision Making in java (Article) Decision Making in java (Program)
2117Program:
public class NestedIf { public static void main(String args[]) { int x = 50; int y = 20; if( x == 50 ) { if( y == 20 ) { System.out.println("X = 50 and Y = 20"); } } } }
Output:
Well doneX = 50 and Y = 20 Press any key to continue . . .
This Particular section is dedicated to Programs only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.