I am tring to convert a set of strings to a byte[] array. At first, I do something like this to convert a byte array to a string:
public String convertByte(byte[
If you are sure that the string contains 1 byte, you can do:
byteArray[i] = st[i].getbytes()[0];