Finding inverse of 2d n*n matrix in Java?
<p>I have just printed the matrix of size n*n</p>

<p>Code is (Assume that all matrices are already defined):</p>

<pre><code>public class ReadContents { 
    public static void main(String args[]) {
        System.out.println();
        System.out.println("The Matrix Is:");
        double mat[][]=new double[col][col];

        for(k=0;k&lt;col;k++) {
            for(p=0;p&lt;col;p++) {
                mat[k][p]=SubMULTIPL_1[k][p]-ADD[k][p];
                System.out.printf("%2.2f  ",mat[k][p]);
            }

            System.out.println();
        }
    }
</code></pre>

<p>But,  I am having the problem of finding the inverse of n*n square matrix<br>
where n=1,2,3..........infinite.</p>

<p>Any help would be appreciated.</p>
