Skip to content

Commit 46b7829

Browse files
committed
Added Actividad 21 - Unit 14
1 parent c02aa43 commit 46b7829

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy