Here you can find the source of copyBitSetToBitSet(BitSet src, int srcPos, BitSet dest, int destPos, int length)
private static void copyBitSetToBitSet(BitSet src, int srcPos, BitSet dest, int destPos, int length)
//package com.java2s; //License from project: Open Source License import java.util.BitSet; public class Main { private static void copyBitSetToBitSet(BitSet src, int srcPos, BitSet dest, int destPos, int length) { for (int i = srcPos, j = destPos; i < length; ++i, ++j) { dest.set(j, src.get(i));/*from ww w . j a va 2s . co m*/ } } }