This is my first question in a community like this, so my format in question may not be very good sorry for that in the first place.
Now that my problem is I want to
I think what you mean is that the column size isn't fixed. Anyway a simple straightforward way would be:
public int[][] copy(int[][] input) { int[][] target = new int[input.length][]; for (int i=0; i