byte[]的内容是二进制数为何转成String???
再,java的byte是带符号位的就是8bit 中第一个代表数的符号。

解决方案 »

  1.   

    String Buffer?
    大虾讲的清楚些好吗?
      

  2.   

    怎么最近这么多人问同样的问题呀
    把bstr数组里面取得的数据判断一下,如果是负数就加上256,然后强制转换成char,再print出来,否则就强制转换成char,再print出来。
      

  3.   

    String(byte[] bytes, String charsetName) 
              Constructs a new String by decoding the specified array of bytes using the specified charset.byte[] getBytes(String charsetName) 
              Encodes this String into a sequence of bytes using the named charset, storing the result into a new byte array.