How to convert a byte array to hex string in Java?


Use Integer.toString(int, redix) where int is byte to be converted and redix is 16 for hexadecimal format.


Updated on: 30-Jul-2019

412 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements