public static <K, V> Map<K, V> newmap(Map.Entry<K, V>... entries) {
        Map<K, V> result = new HashMap<>();
        for(Map.Entry<K, V> entry : entries) {
            result.put(entry.getKey(), entry.getValue());
        }
        return result;
    }
public static < K , V > Map < K , V > newmap ( Map . Entry < K , V > ... entries ) { Map < K , V > result = new HashMap < > ( ) ; for ( Map . Entry < K , V > entry : entries ) { result . put ( entry . getKey ( ) , entry . getValue ( ) ) ; } return result ; }
make map