Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
    }
}