package segment; import java.util.LinkedList; class personne { protected String cin; protected String nom; protected String prenom; protected String adresse; protected int age; public personne(String cin,String nom,String prenom,String adresse,int age){ this.adresse=adresse; this.age=age; this.cin=cin; this.nom=nom; this.prenom=prenom; } } class cadre extends personne{ protected int anciennete; public cadre(String cin,String nom,String prenom,String adresse,int age,int anciennete){ super(cin,nom,prenom,adresse,age); this.anciennete=anciennete; } public String[] nomprenom(){ String l[]=new String[2]; l[0]=this.prenom; l[1]=this.nom; return(l); } public void incremente(){ this.age++; this.anciennete++; } public void afficher(){ System.out.println(this.cin+" "+this.nom+" "+this.prenom+" "+this.adresse+" "+this.age+" "+this.anciennete); } } class listedescadres { protected int n; protected int i; public listedescadres(int p) { cadre tab[]=new cadre[p]; n=p; } public void ajouter(cadre a){ if(this.i m=new LinkedList(); for(int h=0;h