This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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?