Saturday, March 17, 2018

Boolean Test of Java Programming

/* Working with boolean type Variable */
package BoolenTest;
public class BoolenTest
{
    static public void main(String[] args)
    {
        int x , y;
        boolean z;
        x = 15;
        y = 10;
        prln("x > Y is "+(x > y));
        z = y > x;
       
    }
    static void prln(Object anyObject)
    {
        System.out.println(anyObject);
    }
    static void pr(Object anyObject)
    {
        System.out.print(anyObject);
    }
   
}


Share:

0 comments:

Post a Comment

Blogger templates