RT

解决方案 »

  1.   

    转为对应的十进制数么?
    Integer.parseInt("7a7e", 16); 
      

  2.   

    是汉字什么的0x7a7e是Unicode编码
      

  3.   

    "0x7a7e" 字符串 ---》 对应的字符public class Tests{ 
        public static void main(String[] args) 
        { 
         String str = "0x7a7e";
    for (int i = 0; i < str.length(); i++)
    {
    char ch = str.charAt(i);
    System.out.println(ch);
    }    
        } 
    } 运行结果:0
    x
    7
    a
    7
    e这个意思吗?
      

  4.   


    int hex = Integer.parseInt("7a7e", 16);
    char s = (char)hex;
    System.out.println(s);//结果为"穾"