X-Git-Url: https://git.piment-noir.org/?p=TP_POO.git;a=blobdiff_plain;f=TP2%2FEntiers.java;fp=TP2%2FEntiers.java;h=7d55c4264a81aead1a278a11ed0549e90dbd0b7c;hp=a1e18b64911ed78cc45b4dcf8bcdc6ef348b9870;hb=5731ae5f40887e5a299eeca6d9047c06cd17ab41;hpb=979297754a1c307ecbd003a745c4586f04f0c81a diff --git a/TP2/Entiers.java b/TP2/Entiers.java index a1e18b6..7d55c42 100644 --- a/TP2/Entiers.java +++ b/TP2/Entiers.java @@ -75,7 +75,6 @@ class Entiers extends Structure { System.out.println("Aucune valeur à supprimer"); return false; } - for (int i = 0; i < getCurrentSize(); i++) { if (int_array[i] == value) { // Deleting the element in the tab @@ -106,7 +105,8 @@ class Entiers extends Structure { } public void compacter(int nElements) { - + // Remove the last nElements + current_size -= nElements; } }