We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c02aa43 commit 46b7829Copy full SHA for 46b7829
Unit14/src/unit14/Actividad21_Aplicacion/Actividad21.java
@@ -0,0 +1,15 @@
1
+package unit14.Actividad21_Aplicacion;
2
+
3
+import unit14.Actividad15_Aplicacion.DAO.OficinaDAO;
4
5
+/*
6
+ Añade a la clase OficinaDAO un método que devuelva una lista con todas las ofocinas.
7
+ Prueba el método mostrando todas las oficinas existentes en la base de datos
8
+ */
9
+public class Actividad21 {
10
+ public static void main(String[] args) {
11
+ OficinaDAO oficinaDAO = new OficinaDAO(); // Instancia de OficinaDAO
12
+ // He utilizado expresiones lambda para mostrar las oficinas
13
+ oficinaDAO.readAll().forEach(System.out::println); // Mostramos todas las oficinas
14
+ }
15
+}
0 commit comments