private static void zeroize_matrix(int[][] matrix) {
        int[] rows = new int[matrix.length];
        int[] colums = new int[matrix[0].length];

        for (int i = 0; i < matrix.length; i++) {
            for (int j = 0; j < matrix[0].length; j++) {
                if (matrix[i][j] == 0) {
                    rows[i] = 1;
                    colums[j] = 1;
                }
            }
        }

        for (int j=0;j<matrix[0].length;j++) {
            for (int i = 0; i < matrix.length; i++) {
                if (rows[i]==1 || colums[j]==1) {
                    matrix[i][j]=0;
                }
            }
        }

        for (int i = 0; i < matrix.length; i++) {
            for (int j = 0; j < matrix[0].length; j++) {
                System.out.print(matrix[i][j]);
                System.out.print("    ");
            }

            System.out.println("");
        }

    }