Returns a clone of the specified array. : Array « Date Type « Android

Returns a clone of the specified array.

class Main{

     * Returns a clone of the specified array.
     * @param source  the source array (<code>null</code> not permitted).
     * @return A clone of the array.
     * @since JFreeChart 1.0.13
    public static double[][] clone(double[][] source) {
        if (source == null) {
            throw new IllegalArgumentException("Null 'source' argument.");
        double[][] clone = new double[source.length][];
        for (int i = 0; i < source.length; i++) {
            if (source[i] != null) {
                double[] row = new double[source[i].length];
                System.arraycopy(source[i], 0, row, 0, source[i].length);
                clone[i] = row;
        return clone;


Related examples in the same category

1.Load string array value from strings.xml
2.Tests two arrays for equality.
3.Transforms a list of Float values into an array of float.
4.Split the string into an array of strings using one of the separator in 'sep'.
5.Int array to HashSet
6.Array Iterator
7.Convert an array of floats to 16.16 fixed-point
8.Convert an array of 16.16 fixed-point values to floating point
9.Reverse an array
10.Using android.util.SparseArray
11.Join an array of Strings together.
12.Compare Arrays
13.Does Array contain a certain item
14.Create Array with Unique Value
15.Resize a Java array
16.Get Node value and save to ArrayList the photo file into a byte array
18.byte Array To Int
19.load 16 Bit PCM Raw Data File As Double Array
20.convert From Short Array To Double Array
21.convert From Double Array To Short Array
22.get Set From Array
23.Convert an array of floats to 16.16 fixed-point 2 To Byte Array 4
25.Convert a byte array to a boolean array. Bit 0 is represented with false, Bit 1 is represented with 1
26.Return a subarray of the byte array in parameter.