bitwise Gte on two long value - Java java.lang

Java examples for java.lang:long

Description

bitwise Gte on two long value

Demo Code


//package com.java2s;

public class Main {
    public static void main(String[] argv) throws Exception {
        long a = 2;
        long b = 2;
        System.out.println(bitwiseGte(a, b));
    }/* w  w  w.j a  va 2 s .c  o m*/

    public static final boolean bitwiseGte(long a, long b) {
        return (a | b) == a;
    }
}

Related Tutorials