String s = "abcde";
byte[] b = s.getBytes();getBytes
public byte[] getBytes()
Convert this String into bytes according to the platform's default character encoding, storing the result into a new byte array.
Returns:the resultant byte array.
byte[] b = s.getBytes();getBytes
public byte[] getBytes()
Convert this String into bytes according to the platform's default character encoding, storing the result into a new byte array.
Returns:the resultant byte array.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货