Structure: fix all remaining bugs and a test case.
[TP_POO.git] / Structure / Main.java
index de10882ad357faa08fb8b2160bd8f6f9ba4d4230..3794bddaddaf0f651c30b09de7882e60bacd7140 100644 (file)
@@ -67,8 +67,25 @@ class Main {
 
     public static void main(String[] args) {
 
-        main_liste();
-        main_entiers();
+        Structure[] structure = new Structure[10];
+
+        for (int i = 0; i < 10; i++) {
+            structure[i] = new Liste();
+            structure[i].inserer(3);
+            structure[i].inserer(1);
+            structure[i].inserer(5);
+            structure[i].afficher();
+            structure[i].supprimer(5);
+            structure[i].afficher();
+
+            structure[i] = new Entiers(10);
+            structure[i].inserer(3);
+            structure[i].inserer(1);
+            structure[i].inserer(5);
+            structure[i].afficher();
+            structure[i].supprimer(5);
+            structure[i].afficher();
+        }
 
     }