摘要: String[] a = new String[]; String[] b = new String[]; String[] c = new String[a.length+b.length]; //System.arraycopy(src,srcStartPosition,des,desStart 阅读全文
posted @ 2021-03-17 09:48 CEO雷总 阅读(1549) 评论(0) 推荐(0)
摘要: 1、new对象型,并指定初始长度 int[ ] arr = new int[5]; // 创建长度为5 的数组 2、直接初始化特定值型 int[ ] arr = {1,2,3,4}; 3、new对象+初始化值型 int[ ] arr = new int[]{1,2,3,4}; 阅读全文
posted @ 2021-03-17 09:02 CEO雷总 阅读(2518) 评论(0) 推荐(0)