码迷,mamicode.com
首页 > 其他好文 > 详细

System类

时间:2019-12-27 23:19:13      阅读:84      评论:0      收藏:0      [点我收藏+]

标签:数组   mem   arraylist   遍历数组   current   class   stat   void   arrays   

import cn.tom.learning.Array;

import java.util.ArrayList;
import java.util.Arrays;

public class System0 {
    public static void main(String[] args) {
        long l = System.currentTimeMillis();
        System.out.println(l);
        int[]arr1={1,2,3,4,5,6};
        System.out.println(Arrays.toString(arr1));//遍历数组
        int[]arr2={9,8,7,6,5,4};
        System.arraycopy(arr1,0,arr2,2,3);//复制
        for (int i = 0; i < arr2.length; i++) {
            System.out.print(arr2[i]);

        }
    }
}

System类

标签:数组   mem   arraylist   遍历数组   current   class   stat   void   arrays   

原文地址:https://www.cnblogs.com/xzwx668/p/12109745.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!