// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class ULong3 {
    public static void main(String[] args) {
        test(1, 2);
        test(2, 1);
        test(-1, 2);
        test(-2, 1);
        test(1, -2);
        test(2, -1);
        test(-1, -2);
        test(-2, -1);
    }
    private static void test(long v1, long v2) {
        System.out.println(Long.toHexString(v1) + " > " + Long.toHexString(v2) + " = " + ((v1 + Long.MIN_VALUE) > (v2 + Long.MIN_VALUE)));
    }
}
