会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
哩哩1
博客园
首页
新随笔
联系
订阅
管理
2023年11月4日
数组拷贝
摘要: 在a数组索引为1位置插入4 然后将a拷贝到b行成新数组 [2,5,8] a 数组b int[] b = new int[a.length+1]; System.arraycopy(a,0,b,0,1) 将a数组的0到1索引的数拷贝到b数组起始为0的位置 a : 原数组 0: a开始拷贝的位置 b:
阅读全文
posted @ 2023-11-04 23:10 哩哩1
阅读(13)
评论(0)
推荐(0)
公告