Java tutorial
//package com.java2s; import java.util.*; public class Main { public static <T> List<T> joinListValues(Map<?, List<T>> map) { List<T> joinedValues = new ArrayList<>(); for (List<T> list : map.values()) { joinedValues.addAll(list); } return joinedValues; } }