Here you can find the source of map(Object... oo)
public static Map map(Object... oo)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static Map map(Object... oo) { Map result = new HashMap(); for (int i = 0; i < oo.length; i += 2) result.put(oo[i], oo[i + 1]); return result; }/*from w ww. j a v a 2s . com*/ public static <K, V> Map<K, V> map() { return new HashMap<K, V>(); } }