Correction exercice 2
/**
* Un paragraphe dispose du texte associé et offre un service
* d'affichage
*/
public class Paragraph {
private String text;
public Paragraph(String theText) {
this.text=theText;
}
public String toString(){
return this.text;
}
}