Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class Main {
    public static List findAll(Map map, List keys) {
        List list = new ArrayList();
        for (Object key : keys) {
            Object value = map.get(key);
            if (value != null) {
                list.add(value);
            }
        }
        return list;
    }
}