modif supprimer dans commande

This commit is contained in:
famille Thevenot 2024-09-18 17:38:05 +02:00
parent 926b12ec55
commit 7136c719cc

View File

@ -55,7 +55,7 @@ private final HashMap<Instrument, Integer> lesLignes = new HashMap<>();
public boolean supprimer(Instrument unInstrument){
//lesLignes.remove(unInstrument);
boolean suppOK;
if (lesLignes.containsValue(unInstrument) == true){
if (lesLignes.containsKey(unInstrument) == true){
suppOK = true;
lesLignes.remove(unInstrument);
} else {