Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Collections;
import java.util.Map;

public class Main {
    public static void main(String[] a) {
        // create singleton map
        Map<String, String> map = Collections.singletonMap("key", "Value");

        System.out.println("Singleton map is: " + map);
    }
}