mise à jour
This commit is contained in:
17
TP1/Ligne.java
Normal file
17
TP1/Ligne.java
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user