As a matter of conventional programming style, I think it would be better to let the convertStr2Byte() method convert and return the array of bytes and leave printing for the calling function:
...
Type: Posts; User: Zaphod_b
As a matter of conventional programming style, I think it would be better to let the convertStr2Byte() method convert and return the array of bytes and leave printing for the calling function:
...
Declare an array of bytes. The length of the byte array is equal to the String length()/2.
byte [] byteArray = new byte[strKey.length()/2];
Make a loop that goes through the string two...