mardi 25 août 2015

Converting a binary value stored as a string ("10011") to a byte representation (0b00010011) in Java?

Odd question, but a framework I was provided contains a hash table where the return values are Strings. The strings are representative of binary values I need to work with. For example, I put in the key "F", and it will return a string with 0s and 1s, such as "10011". I need to work with that number, 10011, as binary, and eventually store it as binary. How do I go about turning "10011" into a byte 00010011?



from Newest questions tagged java - Stack Overflow http://ift.tt/1IcYmgR
via IFTTT

Aucun commentaire:

Enregistrer un commentaire