unary_ops.mj 277 Bytes
Newer Older
uwdkn's avatar
uwdkn committed
1 2 3 4 5 6 7 8 9 10
class A {
    public static void main(String[] args) {
        int x = 4;
        System.out.println(-x);

        if (!false) { System.out.println(-3); }
        if (!true) { } else { System.out.println(-2); }
        if (!!!true) { } else { System.out.println(-1); }
    }
}