public void clear() {
		//find out the row/column that has 0, indicate it with boolean set
		int[][] matrix_clear = new int[row][column];
		boolean[] row_with_zero = new boolean[row];
		boolean[] column_with_zero = new boolean[column];
		
		for(int i=0; i<row; i++) {
			for(int j=0; j<column; j++) {
				if(matrix[i][j] == 0) {
					row_with_zero[i] = true;
					column_with_zero[j] = true;
				}
			}
		}
		
		System.out.println("After clearing the 0s in the array:");
		for(int i=0; i<row; i++) {
			for(int j=0; j<column; j++) {
				if(row_with_zero[i] || column_with_zero[j]) {
					matrix_clear[i][j] = 0;
				} else {
					matrix_clear[i][j] = matrix[i][j];
				}
				System.out.print(matrix_clear[i][j] + " ");
			}
			System.out.println();
		}
		System.out.println();
	}