From 0437df4d98e8208ac74dedf2fa9354676b401e44 Mon Sep 17 00:00:00 2001 From: NadiaGonzalez27 Date: Fri, 23 Jun 2023 15:32:08 -0300 Subject: [PATCH] Clase 10- Video 10.4- Agregamos el caso 3 Agregamos el caso 3 y realizamos la prueba de la aplicacion. --- .../src/ListadoPersonasApp.java | 8 +++++++- .../ListadoPersonasApp.class | Bin 1161 -> 3478 bytes 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Java/Semana 11 (12-06 al 16-06)/Leccion11/ListarPersonas/src/ListadoPersonasApp.java b/Java/Semana 11 (12-06 al 16-06)/Leccion11/ListarPersonas/src/ListadoPersonasApp.java index b222c1a..a20a688 100644 --- a/Java/Semana 11 (12-06 al 16-06)/Leccion11/ListarPersonas/src/ListadoPersonasApp.java +++ b/Java/Semana 11 (12-06 al 16-06)/Leccion11/ListarPersonas/src/ListadoPersonasApp.java @@ -55,6 +55,12 @@ private static boolean ejecutarOperacion(Scanner entrada, List personas //personas.forEach((persona) -> System.out.println(persona)); personas.forEach(System.out::println); }//Fin del caso 2 - } + case 3 -> {//Salir del ciclo + System.out.println("Hasta pronto..."); + salir = true; + }//Fin del caso 3 + default -> System.out.println("Opcion incorrecta: "+opcion); + }//Fin del switch + return salir; } //Fin del método ejecutarOperacion }//Fin de clase ListadoPersonasApp diff --git a/Java/Semana 11 (12-06 al 16-06)/out/production/Semana 11 (12-06 al 16-06)/ListadoPersonasApp.class b/Java/Semana 11 (12-06 al 16-06)/out/production/Semana 11 (12-06 al 16-06)/ListadoPersonasApp.class index 5a91e80c2624abe006e5dd82276187a2a9c58e06..9ff1f745b54925d773bf8f71815d28fee546ad2a 100644 GIT binary patch literal 3478 zcmcImYgZe`8GZ%?E5zD>Fm{Nsvq`Xxz!e2M7bAxn6T2oA;6@HEcGGr{2C+ukRaPt4 zq}TL*OYdpj^p?6!shjlT&gG@!D6b6(v>Px@?85F%T5>B@UzG)#Y)7Cc8%Wyj@RU=j`8nTHvYbi4K&L*x zOW=W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