import java.util.Arrays;
public class CopyTest{
public static void main(String[] args) {
int [][]values={{5,15},{25,35,45},{55,65}};
int [][]cloned=new int [values.length][];
for(int i=values.length;--i>=0;){
cloned[i]=new int[values[i].length];
System.arraycopy(values, 0, cloned, 0, values[i].length);
}
for(int i=cloned.length;--i>=0;){
System.out.println(Arrays.toString(cloned[i]));
}
}
}
别没事找事做了,用list或者map