我想删除字节数组byte【】前3个字节数据,应该如何操作

新靖界 2014-07-01 04:40:45
如题,java,String str="12345678910",我想删除byte[] byte=str.getBytes(),我想删除byte前3个数据,应该如何操作?
...全文
1488 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
新靖界 2014-07-01
  • 打赏
  • 举报
回复
引用 1 楼 hjywyj 的回复:
byte[] bts = str.getBytes(); byte[] new_bts= Arrays.copyOfRange(bts, 3, bts.length);
谢谢,请接受我的谢意!
  • 打赏
  • 举报
回复
byte[] bts = str.getBytes(); byte[] new_bts= Arrays.copyOfRange(bts, 3, bts.length);

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧