1.字符串与字节 public String(byte[] byte); 将全部字节变成字符串 public String (byte[] byte,int offset,int length) 将部分字节变成字符串 public byte[] getBytes() 将字符串变成字节 public byte[] getBytes(String charsetName) throws Excption 字符串转码操作 public class TestDemo { public static vo…