Re: Binary to Hexadecimal Conversion



lei wrote:
I made this program of converting binary to hexadecimal, there are few errors which are new to me.

for(int count=hex.length; count>=0; count--){
if(hex[count]==10)

You are addressing the array 'hex' beyond the end.
.