Java - Compare two int value in if statement

Description

Compare two int value in if statement

Demo

public class ifelse {
  public static void main(String[] args) {
    int a = 4;/*from  w ww  . ja  v a2  s  . c om*/
    int b = 5;
    if (a == b)
      System.out.println("Another line Wow!");
    else
      System.out.println("Double rainbow!");
  }
}

Related Topic