Java Blog

 
 
 
 public class JAVA_019
 {

    public static void main(String[] args)
    {
       int number=(int)(Math.random( )*100);

       System.out.println(\"Before Testing for If condiiton, Number is \" + number);

       if(++number<25 & ++number!=50)
          System.out.println(\"The If condition is True.\");

       System.out.println(\"After Testing for If condiiton, Number is \" + number);
    }
 }

 
 
Didn't find what you were looking for? Find more on Program to show the use of Logical AND Operator (&) in If Statements