If else

 package conditionalStatements;


public class IfElseClass {


public static void main(String[] args) {


int p = 6;

if( p % 2 == 0) {

System.out.println("She Loves Me");

} else {

System.out.println("She Loves Me Not");

}

}


}


Comments

Popular posts from this blog

Simple Intrest

Automatic Type Casting

Find Palindrome Number