class Main {
public static void main(String[] args) {
int value = 5;
int anotherValue = 4;
boolean result;
result = value == anotherValue;
System.out.println("Hasil 'value == anotherValue' adalah " + result);
System.out.println();
System.out.println("Tidak sama dengan.. ");
result = value != anotherValue;
System.out.println("Hasil 'value != anotherValue' adalah " + result);
System. out. println();
System. out. println("lebih besar dari..");
result = value > anotherValue;
System.out.println("Hasil 'value > anotherValue' adalah " + result);
System.out.println();
System.out.println("sama atau lebih dari..");
result = value >= anotherValue;
System.out.println("Hasil 'value >= anotherValue' " + result);
System.out.println();
System.out.println("kurang dari.. ");
result = value < anotherValue;
System.out.println("Hasil 'value < anotherValue adalah " + result );
System.out.println();
System.out.println("sama atau kurang dari dengan.. ");
result = value <= anotherValue;
System.out.println("Hasil 'result <= anotherValue' adalah " + result);
System.out.println();
}
}