1.进制转换
2.字节类型转换
utf-8 utf-16e gbk
将字符串与字节互相转换,计算机能识别的字节语言(16机制)
byte a[]=str.getBytes("gbk");
System.out.println( );
for(byte x:a)
System.out.print(Integer.toHexString(x& 0xff)+" ");
String e=new String(c,"utf-8");//反编译
System.out.println(e);