convert bcd to ascii Java

As an example of what the Bcd2Ascii function should do, the value 0x786 should translate to the string “786”.

i am receiving an int 0x786 and not byte array.

Thanks in advance
convert bcd to ascii Java
===


As an example of what the Bcd2Ascii function should do, the value 0x786 should translate to the string “786”.

i am receiving an int 0x786 and not byte array.

Thanks in advance