
public class Test {
	public static void main(String[] args) {
		Liste x = new Liste();
		x.ajouterFin(3);
		x.ajouterFin(1);
		x.ajouterFin(4);
		x.ajouterFin(1);
		x.ajouterFin(5);
		x.ajouterFin(9);
		x.ajouterFin(2);
		x.ajouterFin(6);
		
		Liste y = new Liste();
		y.ajouterFin(1);
		y.ajouterFin(2);
		y.ajouterFin(3);
		y.ajouterFin(3);
		y.ajouterFin(3);
		y.ajouterFin(2);
		y.ajouterFin(1);
		
		System.out.println("Liste x : 3, 1, 4, 1, 5, 9, 2, 6");
		System.out.println("Liste y : 1, 2, 3, 3, 3, 2, 1");
		
		System.out.println();
		
		System.out.println("afficher :");
		x.afficher();
		
		System.out.println();
		
		System.out.println("afficherInverse :");
		x.afficherInverse();
		
		System.out.println();
		
		System.out.println("passerEnOrdonnant :");
		x.passerEnOrdonnant();
		x.afficher();
		
		System.out.println();
		
		System.out.println("trier :");
		x.trier();
		x.afficher();

		System.out.println("verifContraine : " + x.verifContraine());
		
		System.out.println();
		
		System.out.println("estUnPalindrome :");
		System.out.println("Liste x : " + x.estUnPalindrome());
		System.out.println("Liste y : " + y.estUnPalindrome());
		
		System.out.println();
		
		System.out.println("moyenneLocale (après le tri) :");
		x.moyenneLocale().afficher();
		
		System.out.println();
		
		System.out.println("annuleRedondances (y) :");
		y.annuleRedondances();
		y.afficher();
		
	}
}
