This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
well by byte array you mean a byte and a byte is 8 bits so you will not get the 1's and 0's. however you could use the Integer.toBinaryString(int) method to obtain the binary representation of each byte in the array.
there is no java type that can have a binary value, unless you do your own implementation, may be an array of booleans ;)
Omar Al Kababji - Electrical & Computer Engineer
[SCJP - 90% - Story] [SCWCD - 94% - Story] [SCBCD - 80% - Story] | My Blog
First you say that you are mapping "AAAA" to "its binary equivalent string", "1010". And then you are surprised that the string contains ASCII characters 49 and 48. But that's exactly what you converted it to?