This content has been marked as final. Show 4 replies
I think that java doesn't have unsigned bytes, just signed bytes, and as such, I believe that the compiler's conversions are correct.
I think I'm missing info to fully proces what you are trying to do. What is the source of this (these) byte array(s)? Can you instead use integers? hexadecimal notation (i.e., 0xff)? I guess I need to know your constraints and desires....
Thanks for your answer!,
I was trying to do a genetic algorithm, but my problem was finishing.
Thanks a lot!.
Why are you using BitInteger for Bit Storage?
Why not just use a Byte Array?
The reason is I am working with genetic algorithm and I need only the 0 and 1 values. The bytes array it's not natural for my application.
Thanks a lot.