Java中如何将字符串转化为字节数组,并输出,比如得到的输入为
:String str="我是好学生,My name is Studentdaiwei!"
转化为字节数组中,并输出
又如何将字节数组转化为比特数组并输出

Java中如何将字符串转化为字节数组,并输出
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
3条回答 默认 最新
- Nature-Coder-Porter 2016-04-26 00:52关注
String str="我是好学生,My name is Studentdaiwei!"
byte[] data=str.getBytes();本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报