Java tutorial
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); } }