Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.Map;
import java.util.Map.Entry;

public class Main {
    public static <K, V> void printMap(Map<K, V> map, String seperator) {
        for (Entry<K, V> entry : map.entrySet()) {
            System.out.println(entry.getKey() + seperator + entry.getValue());
        }
    }
}