package ch07_05;
public class SystemTest {
	public static void main(String[] args) {
		long timeStart = System.currentTimeMillis();
		String[] s1 = { "aaa", "bbb", "ccc", "ddd", "eee", "fff" };
		String[] s2 = new String[6];
		System.arraycopy(s1, 0, s2, 0, s1.length);// 将s1内容全部赋给s2
		System.out.println("数组的各元素依次为：");
		for (String s : s2) {
			System.out.println(s);
		}
		for(long x=1;x<=500000;++x){int y=0;}
		long timeEnd = System.currentTimeMillis();
		System.out.println("运行时间为:" + (timeEnd - timeStart));
	}
}