Miglioria stampa

This commit is contained in:
La Programmatrice Verde
2025-10-21 23:32:14 +02:00
parent db0f5138c6
commit dfb7bfb834

View File

@@ -211,7 +211,7 @@ public class listaSpesa {
do {
error = false;
System.out.print("Il prodotto è un genere alimentare? [S/n]");
System.out.print("Il prodotto è un genere alimentare? [S/n] ");
scelta = sc.nextLine().toLowerCase();
if (scelta.equals("y") || scelta.equals("s")) {
@@ -282,7 +282,7 @@ public class listaSpesa {
do {
do {
error = false;
System.out.print("Il prodotto è un genere alimentare? [S/n]");
System.out.print("Il prodotto è un genere alimentare? [S/n] ");
scelta = sc.nextLine().toLowerCase();
if (scelta.equals("y") || scelta.equals("s")) {
@@ -327,7 +327,7 @@ public class listaSpesa {
do {
error = false;
System.out.print("È corretto? [S/n]");
System.out.print("È corretto? [S/n] ");
scelta = sc.nextLine().toLowerCase();
if (scelta.equals("y") || scelta.equals("s")) {
@@ -400,7 +400,7 @@ public class listaSpesa {
String scelta;
do {
error = false;
System.out.print("Si ha la carta fedeltà? [S/n]");
System.out.print("Si ha la carta fedeltà? [S/n] ");
scelta = sc.nextLine().toLowerCase();
if (scelta.equals("y") || scelta.equals("s")) {