public class BinaryDump extends java.lang.Object
Aditional documentation: see Section 5.5, p.811-815, of "Algorithms, 4th Edition", by Robert Sedgewick e Kevin Wayne.
Constructor and Description |
---|
BinaryDump() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Reads a binary file and writes out the bits,
N per line (N is a command-line argument).
|
public static void main(java.lang.String[] args)
% more abra.txt ABRACADABRA! % java BinaryDump 16 < abra.txt 0100000101000010 0101001001000001 0100001101000001 0100010001000001 0100001001010010 0100000100100001 96 bits