package com.reflect;
/**
* Created by IntelliJ IDEA.
* User: zhangchuanlong
* Date: 12-4-7
* Time: 下午10:11
* To change this template use File | Settings | File Templates.
*/
public class ArrayClone {
public static void main(String[] args)
{
int a[]={1,2,3,4,5,5,6};
int b[]={3,4,5,5,6,6};
System.out.println("before clone");
System.out.println(a.length);
System.out.println(b.length);
System.out.println("after clone");
System.out.println(arrayCone(a).length);
System.out.print(arrayCone(b).length);
}
static int[] arrayCone(int array[])
{
return array.clone();
}
}