mismatching_type_comparison.invalid.mj 321 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
class MismatchingTypeComparison {
    public static void main(String[] args) {
        int a = 10;
        int b = 42;

        boolean x = false;
        boolean y = true;

        boolean z;

        z = a < x;
        z = a <= x;
        z = a > x;
        z = a >= x;

        z = a != x;
        z = b != y;
    }
}