public class sparseMatrix { int row; int column; double value; sparseMatrix() { this.row = -1; this.column = -1; this.value = 0; } sparseMatrix (int r, int c, double v) { this.row = r; this.column = c; this.value = v; } }