How to use The if Statement in action?

public class MainClass {

  public static void main(String[] arg) {

    int a = 0;

 

    if (a == 0) {

      System.out.println("a is 0");

    }

  }

}

 

a is 0