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.TreeMap;

public class Main {
    public static void log(Map<?, ?> map) {

        TreeMap<Object, Object> tree = new TreeMap<Object, Object>(map);

        for (Map.Entry<Object, Object> entry : tree.entrySet()) {
            System.err.println(String.format("%s = %s", entry.getKey(), entry.getValue()));
        }

    }
}