toHexString(byte[]) cannot be applied to (byte)
hi, i encountered an error like this:
toHexString(byte[]) cannot be applied to (byte)
publicstatic String toHexString(byte[] msg){
StringBuffer buffer =new StringBuffer();
if (msg !=null){
for (int i = 0; i < msg.length; i++)
buffer.append(toHexString(msg[i]) );// error occurred here
return buffer.toString();
}else{
return"NOTHING";
}
}
any advice is appreciatedly.thanks in advance

