
How to convert perticular ASCII charecter(~)"TILDA" from a no. of files to NULL(00:HEX value). ASCII value of ~7e HEX value of ~:00

The given code accepts the string and convert this String to char array, cast it to integer(decimal) followed by Integer.toHexString() to convert it to Hex value.
class ConvertAsciiToHex
{
public static void main(String[] args)
{
String str="Hello World";
char[] chars = str.toCharArray();
StringBuffer hex = new StringBuffer();
for(int i = 0; i < chars.length; i++){
hex.append(Integer.toHexString((int)chars[i]));
}
System.out.println(hex.toString());
}
}

Great stuff guyes... Could u pls let me know,How it can be done when we have bulk of files as input and perform the character conversion for any particular char only in all files!!!!!!
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.