Thanks for the suggestions...I have tried both ways ans they work great.
I am actually going to resort to creating my own method for displaying the binary format for a number. I am head up a study group at work for
Java Certification and I have come up with a 'homework' assignment for the engineers to do to get more familiar with bit shifting and the bit-wise operators. So what I am wanting is something that displays the binsary number including all bits for a specific data type, for instance...
an int 5 -> 00000000000000000000000000000101
whereas the methods above would show only 101
This way it is easier to get a grasp on what exactly the different bit-wise operaters are doing.
Thanks for the help...