Scott A Burch wrote:I need to convert spinnerStr into ASCII decimals first, then put the decimals into a byte array. Using spinnerStr.getBytes() directly gives me a very different result than what I am looking for ...
So somehow I need to convert int j into a byte array.
thanks!
Scott A Burch wrote:I need to convert spinnerStr into ASCII decimals first, then put the decimals into a byte array. Using spinnerStr.getBytes() directly gives me a very different result than what I am looking for ...
Scott A Burch wrote:I get an "Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException" at the point of the second System.arraycopy line [ line 18 ]. I believe the first byte array is 6 bytes long, so I think the position where the second array copies into bCombined is 7.
Anything worth doing well is worth doing poorly first. Just look at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|