Here you can find the source of rightshift(byte b1, BigInteger b2)
public static byte rightshift(byte b1, BigInteger b2)
//package com.java2s; import java.math.*; public class Main { public static byte rightshift(byte b1, BigInteger b2) { return (byte) ((b1 & 0xFF) >>> b2.intValue()); }/* w w w.j ava 2s . c o m*/ }