Skip to content

Commit

Permalink
Merge/Agregamos-el-case2-JAVA
Browse files Browse the repository at this point in the history
Clase 10 - Video 10.4 (Parte 3)
  • Loading branch information
juaniM4c authored Jun 23, 2023
2 parents ddb18f3 + 16ce103 commit d6768ee
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ private static boolean ejecutarOperacion(Scanner entrada, List<Persona> personas
personas.add(persona);
System.out.println("La lista tiene: " + personas.size() + " elementos");
} //Fin caso 1
case 2 -> {//Listar a las personas
System.out.println("Listado de personas: ");
//Mejoras con lambda y el metodo por referencia
//personas.forEach((persona) -> System.out.println(persona));
personas.forEach(System.out::println);
}//Fin del caso 2
}
} //Fin del método ejecutarOperacion
}//Fin de clase ListadoPersonasApp

0 comments on commit d6768ee

Please sign in to comment.