当前位置: 技术问答>java相关
如何将String转换为byte[]型,急用,立即送分
来源: 互联网 发布时间:2015-03-14
本文导语: 急急急! | String str="test"; byte[] bt=str.getBytes(); | String byte[] getBytes(String enc) Convert this String into bytes according to the specified character encoding, storin...
急急急!
|
String str="test";
byte[] bt=str.getBytes();
byte[] bt=str.getBytes();
|
String
byte[] getBytes(String enc)
Convert this String into bytes according to the specified character encoding, storing the result into a new byte array.
byte[] getBytes(String enc)
Convert this String into bytes according to the specified character encoding, storing the result into a new byte array.