matrix manipulation in java
<p>Hey! I have matrix class and i want to add, multiply and take transpose of the matrix. for the structure of the code...I made a matrix class with a constructor, basic get methods and the methods to do the operations. Here's what i have. i'm not sure if i need a constructor or not. I will have an application class that will call the main method. i want to know if so far I'm good with the thought process?</p>

<pre><code>import java.io.*;
import java.util.*;
import java.util.Scanner;

class Matrix {
    double[][] element;
    int row, col;

    Matrix(int a, int b) {
        row = a;
        col = b;
        element = new double[a][b];
    }

    public double getElement(int a, int b) {
        return element[a][b];
    }

    public int getRow() {
        return row;
    }

    public int getCol() {
        return col;
    }
}
</code></pre>
