Here you can find the source of getMostSignificantBit(byte b)
public static int getMostSignificantBit(byte b)
//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 }