Stampa conto

This commit is contained in:
La Programmatrice Verde
2026-01-15 18:35:45 +01:00
parent 61a485c92b
commit c1c74e3805
3 changed files with 27 additions and 5 deletions

View File

@@ -45,9 +45,10 @@ public class MyBank {
do {
System.out.println("Scegliere un'opzione:");
System.out.println("1. Aprire conto corrente");
System.out.println("2. Versamento");
System.out.println("3. Prelievo");
System.out.println("4. Mostra movimenti");
System.out.println("2. Stampa conto corrente");
System.out.println("3. Versamento");
System.out.println("4. Prelievo");
System.out.println("5. Mostra movimenti");
System.out.println("0. Esci");
System.out.print("Opzione: ");
@@ -65,6 +66,14 @@ public class MyBank {
pausa();
break;
case 2:
if (conti.isEmpty()) {
System.out.println(ERRORE_CONTI_VUOTO);
} else {
System.out.println(selezionaConto(conti).toString());
}
pausa();
break;
case 3:
if (conti.isEmpty()) {
System.out.println(ERRORE_CONTI_VUOTO);
} else {
@@ -73,7 +82,7 @@ public class MyBank {
}
pausa();
break;
case 3:
case 4:
if (conti.isEmpty()) {
System.out.println(ERRORE_CONTI_VUOTO);
} else {
@@ -82,7 +91,7 @@ public class MyBank {
}
pausa();
break;
case 4:
case 5:
if (conti.isEmpty()) {
System.out.println(ERRORE_CONTI_VUOTO);
} else {