I have string in the following format:
String input = "4E 65 73 74 6C C3 A9"
Which I need to convert to below output:
Nestlé
Is there any utility library or java function I can use to make it work?
I have string in the following format:
String input = "4E 65 73 74 6C C3 A9"
Which I need to convert to below output:
Nestlé
Is there any utility library or java function I can use to make it work?
Try,
String input = "4E 65 73 74 6C C3 A9";
String[] hex=input.split(" ");
for(String h:hex){
int value=Integer.parseInt(h,16);
System.out.print((char)value);
}