static protected String printCodeBook(final BitVector[] codeWords){
  final StringBuilder sb=new StringBuilder();
  for (  BitVector v : codeWords) {
    final long long1=v.getLong(0,v.size());
    final long long2=Long.reverse(long1 << (64 - v.size()));
    sb.append("codeWord: " + v + ", bitLength="+ v.size()+ ", longValue="+ long2+ "\n");
  }
  return sb.toString();
}

static protected String printCodeBook ( final BitVector [ ] codeWords ) { final StringBuilder sb = new StringBuilder ( ) ; for ( BitVector v : codeWords ) { final long long1 = v . getLong ( 0 , v . size ( ) ) ; final long long2 = Long . reverse ( long1 << ( 64 - v . size ( ) ) ) ; sb . append ( "codeWord: " + v + ", bitLength=" + v . size ( ) + ", longValue=" + long2 + "\n" ) ; } return sb . toString ( ) ; }
format the code book as a multi - line string .
