Showing posts with label nested if demo. Show all posts
Showing posts with label nested if demo. Show all posts

Saturday, 15 June 2013

Demonstration of Nested if in Java

public class Test {

   public static void main(String args[]){
      int x = 30;
      int y = 10;

      if( x == 30 ){
         if( y == 10 ){
         System.out.print("X = 30 and Y = 10");
      }
   }
}