I have a
string array that I converted to the data to 4 hex strings. I placed the hex strings into each location of the string array.
For example;
String [] hex_Str;
hex_Str[0] = Integer.toHexString(127);
hex_Str[1] = Integer.toHexString(0);
hex_Str[2] = Integer.toHexString(0);
hex_Str[3] = Integer.toHexString(1);
and return hex_Str
I have another method that takes the string array and wishes to place it into a byte array.
for(int i=0;i<4;i++) {
params[i]= (byte) hext_Str[i].charAt(i);
}
I get an index out of bounds error, what appears to be the problem?