private int byteIndex(int index) throws IndexOutOfBoundsException {
  if (index < 0 || index >= data.length * 8) {
    throw new IndexOutOfBoundsException();
  }
 else {
    return index / 8;
  }
}

private int byteIndex ( int index ) throws IndexOutOfBoundsException { if ( index < 0 || index >= data . length * 8 ) { throw new IndexOutOfBoundsException ( ) ; } else { return index / 8 ; } }
returns the index of the byte in the the byte array that contains the given bit . < p >
