Skip to content

Commit

Permalink
Clase 10- Video 10.4- Agregamos el caso 3
Browse files Browse the repository at this point in the history
Agregamos el caso 3 y realizamos la prueba de la aplicacion.
  • Loading branch information
NadiaGonzalez27 committed Jun 23, 2023
1 parent d6768ee commit 0437df4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ private static boolean ejecutarOperacion(Scanner entrada, List<Persona> 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
Binary file not shown.

0 comments on commit 0437df4

Please sign in to comment.