Back To Java Flow of Control Index
//program to demonstrate if statement example 1 , check whether number is equal to 10 or not public class ifexample1 { public static void main(String[] args) { int a; a=10; if(a==10) { System.out.println("a is equal to 10 "); } } }