Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static int[][] copyArray(int[][] fromArray) {
        int[][] inArray = new int[fromArray.length][fromArray[0].length];
        for (int i = 0; i < fromArray.length; i++)
            System.arraycopy(fromArray[i], 0, inArray[i], 0, fromArray[i].length);

        return inArray;
    }
}