// 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 ULong {
    public static boolean GT(long v1, long v2) {
        if(v1 > 0) {
            if(v2 > 0) {
                return (v1 > v2);
            } else {
                return false;
            }
        } else {
            if(v2 > 0) {
                return true;
            } else {
                return (v1 > v2);
            }
        }
    }
    private static void test(int v1, int v2) {
        System.out.println(Long.toHexString(v1) + " > " + Long.toHexString(v2) + " = " + GT(v1, v2));
    }
    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);
    }
}
