Android Bit Get getMostSignificantBit(byte b)

Here you can find the source of getMostSignificantBit(byte b)

Description

get Most Significant Bit

Declaration

public static int getMostSignificantBit(byte b) 

Method Source Code

//package com.java2s;

public class Main {
    public static int getMostSignificantBit(byte b) {
        return b >> 7 & 0x1;
    }//from   w w w . j  ava  2 s .  co  m
}

Related

  1. getBit(byte[] bytes, int bitNr)