0
点赞
收藏
分享

微信扫一扫

数组的拷贝System.arraycopy

package com.yqq.app11;

/**
* @Author yqq
* @Date 2021/11/20 00:14
* @Version 1.0
*/
public class Test04 {
public static void main(String[] args) {
String[] s = {"科比","詹姆斯","杜兰特"};
String[] sBak = new String[6];
System.arraycopy(s,0,sBak,0,s.length);
for (int i = 0; i < sBak.length; i++) {
System.out.print(sBak[i]+"\t");
}
}
}

数组的拷贝System.arraycopy_hbase


举报

相关推荐

0 条评论