This commit is contained in:
La Programmatrice Verde
2025-10-22 21:44:33 +02:00
parent f948c2e3c2
commit 1af216f415
4 changed files with 31 additions and 3 deletions

View File

@@ -477,7 +477,7 @@ public class listaSpesa {
for (int i = 0; i < magazzino.length && !exit; i++) {
if (magazzino[i] != null) {
if (magazzino[i].hashCode() == p_prodotto.hashCode()) {
if (magazzino[i].isEqual(p_prodotto)) {
ritorno = i;
exit = true;
}
@@ -497,7 +497,7 @@ public class listaSpesa {
for (int i = 0; i < scontrino.length && !exit; i++) {
if (scontrino[i] != null) {
if (scontrino[i].hashCode() == p_prodotto.hashCode()) {
if (scontrino[i].isEqual(p_prodotto)) {
ritorno = i;
exit = true;
}