-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTrackList.java
More file actions
26 lines (20 loc) · 826 Bytes
/
TrackList.java
File metadata and controls
26 lines (20 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import java.util.HashMap;
import java.util.Set;
public class TrackList {
public void list() {
System.out.println("--------- TrackList ---------");
HashMap<String, String> tracksMap = new HashMap<String, String>();
tracksMap.put("El dia de mi suerte", "Pronto llegara, el dia de mi suerte");
tracksMap.put("El cantante", "Yo soy el cantante que hoy han venido a escuchar");
tracksMap.put("Periodico de ayer", "Tu amor es un periodico de ayer");
tracksMap.put("La murga", "La calle es una selva de cemento");
/*
* tracksMap.entrySet().forEach(entry -> System.out.println("\ntitulo: " +
* entry.getKey() + "\nletra: " + entry.getValue()));
*/
Set<String> keys = tracksMap.keySet();
for (String key : keys) {
System.out.println("\nTRACK: " + key + "\nLYRICS: " + tracksMap.get(key));
}
}
}