Menu



Java program for Comparing Value


ComparingValue.java

class ComparingValue
{
public static void main(String[] args)
{
int x = 0;
if ( (x=5) != 10)
{
System.out.println("Success!");
}
System.out.println("Hello World!");
System.out.println((x=5));
}
}

Output

comparing value