mise à jour

This commit is contained in:
2025-12-09 21:25:47 +01:00
parent b4273e9272
commit df9520821a
20 changed files with 181 additions and 17 deletions

17
TP1/Ligne.java Normal file
View File

@@ -0,0 +1,17 @@
public class Ligne{
private String nom;
private Liaison[] tabLiaison;
private int nbLiaison = 0;
public Ligne(String s){
this.nom = s;
}
public String toString(){
String s = "Ligne "+this.nom;
for(int i = 0; i < nbLiaison ;i++){
s += "\n";
s += this.tabLiaison[i];
}
return s;
}
}