// RelationalExample.java – Using relational operators
public class RelationalExample {
public static void main(String args[]) {
int a = 3, b = 5;
System.out.println(“a < b = " + (a b = ” + (a>b));
System.out.println(“a <= b = " + (a<=b));
System.out.println("a >= b = ” + (a>=b));
System.out.println(“a == b = ” + (a==b));
System.out.println(“a != b = ” + (a!=b));
}
}