Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.Map;

public class Main {
    public final static <GPOutput> boolean isMapComplete(final Map<Integer, GPOutput> map, final int size) {
        for (int i = 0; i < size; i++) {
            if (map.get(Integer.valueOf(i)) == null) {
                return false;
            }
        }
        return true;
    }
}