Monday, 9 May 2016

If Else in Java

class ifelse {
  public static void main(String[] args) {
    boolean i = true;
 
    if (learning) {
      System.out.println("True part Run");
    }
    else {
      System.out.println("False part Run");
    }
  }
}
 
Output:
True part Run 

No comments:

Post a Comment