Here you can find the source of shiftRight(BitSet bitset, int n)
public static BitSet shiftRight(BitSet bitset, int n)
//package com.java2s; //License from project: Open Source License import java.util.BitSet; public class Main { public static BitSet shiftRight(BitSet bitset, int n) { return bitset.get(n, Math.max(n, bitset.length())); }//from w w w.ja v a 2 s. c o m }