public class HexToStr{
public static char[]
    HexCharTable={'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};;
public int i=0;

public char HexToChar(int c)
{
if(c<0||c>15) return 0;

return HexCharTable[c];
}

StringBuffer HexToString(String src, int len)
{
StringBuffer dest=new StringBuffer(len*2+1);

for(int i=0; i<len; i++)
{
dest.insert(i*2,HexToChar(src.charAt(i)>>4)); 
dest.insert(i*2+1,HexToChar(src.charAt(i)&0xf));
}
return dest;
}

public static void main(String a[]){
HexToStr hs=new HexToStr();
System.out.println(hs.HexToString("EB",2));
}
}