public static void main(String[] args) {
        int[][] matResult = new int[mat.length][mat[0].length];
        int[][] matTemp;
        int i, j;

        print("Vecteur:");
        printVector(vect);

        print("Matrice:");
        printMatrix(mat);

        for(i = 0; i < vect.length; i++)
            matResult[0][i] = vect[i]+mat[0][i];

        print("Première étape:");
        printMatrix(matResult);

        for(i = 1; i < matResult.length; i++)
            for(j = 0; j < matResult[i].length; j++)
                matResult[i][j] = matResult[i-1][j]+mat[i][j];

        print("Deuxième étape:");
        printMatrix(matResult);

        matTemp = new int[matResult.length][matResult[0].length];
        for(i = 0; i < matResult.length; i++)
            for(j = 0; j < matResult[i].length; j++)
                matTemp[i][j] = matResult[i][j];

        matResult = new int[mat.length+1][mat[0].length];
        for(i = 0; i < matResult.length-1; i++)
            for(j = 0; j < matResult[i].length; j++)
                matResult[i][j] = matTemp[i][j];

        print("Troisième étape:");
        printMatrix(matResult);

        for(i = 0; i < vect.length; i++)
            matResult[matResult.length-1][i] = vect[i];

        print("Quatrième étape:");
        printMatrix(matResult);

        System.exit(0);
    }