byte b='a';
    String s="0x"+Integer.toHexString((int)b);
    System.out.println(s);

解决方案 »

  1.   

    From byte b To String gg: 
    gg = Integer.toString(b);
    or 
    gg = String.valueOf(b);The following may be substituted for toString, where appropriate: toBinaryString
    toOctalString
    toHexString
    Where you are using a base other than 10 or 2 (such as 8): gg = Integer.toString(b, 7);
      

  2.   

    info[2]+""  OR  0x41+""
      

  3.   

    String[] info;
    info= String[32];
    info[0]=0xd0+"";
    info[1]=0x00+"";
    info[2]=0x41+"";