import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
    public static void main(String[] args) {
    double [][] t = {{1.0,2.0,3.0},{6.0,7.0,8.0}};

        matrice M1 =new matrice(t);
        M1.aff();
        System.out.println("Somme de ligne 1 : " + M1.somme(1));
        System.out.println("Nombre des element dans la matrice : " + M1.elem());
        System.out.println("Somme totale de la matrice : " + M1.stot());
        System.out.println("Moyenne de la matrice: " + M1.mtot());
        System.out.println("Plus grand nombre de la matrice : " + M1.pgrnd());
        // RECHERCHER 1
        M1.rech(1);
        M1.rech(9);
        
        
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: