|
private static String getASCIICode(String normalStr) {
StringBuffer buffer = new StringBuffer();
byte[] bitArray = normalStr.getBytes();
int length = bitArray .length;
for (int i = 0; i <length; i++)
{
buffer.append(Integer.toHexString(bitArray [i]));
}
return (new String(buffer));
}
//Only English strings
Give points! Give points! Ha ha |
|