bitwise Lte between long value - Java java.lang

Java examples for java.lang:long

Description

bitwise Lte between 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(bitwiseLte(a, b));
    }/*from  www  . j a  va  2s .c  om*/

    public static final boolean bitwiseLte(long a, long b) {
        return (a & b) == a;
    }
}

Related Tutorials