import java.util.*;// List of harvested UI texts:
List<String> productTitles = new ArrayList<>();
productTitles.add("Wireless Mouse");
productTitles.add("Mechanical Keyboard");
// Map for API headers:
Map<String, String> headers = new HashMap<>();
headers.put("Authorization", "Bearer eyJhbGci...");
headers.put("Content-Type", "application/json");
// Iterate with for-each:
for (Map.Entry<String, String> entry : headers.entrySet()) {
System.out.println(entry.getKey() + " -> " + entry.getValue());
}