Java Map Create createMapFromWebsiteList(String[] websiteList)

Here you can find the source of createMapFromWebsiteList(String[] websiteList)

Description

create Map From Website List

License

Open Source License

Declaration

public static Map<String, Boolean> createMapFromWebsiteList(String[] websiteList) 

Method Source Code


//package com.java2s;
import java.util.HashMap;
import java.util.Map;

public class Main {
    public static Map<String, Boolean> createMapFromWebsiteList(String[] websiteList) {
        Map<String, Boolean> webMap = new HashMap<String, Boolean>();
        for (String website : websiteList) {
            webMap.put(website, true);//from  w w  w .j  a  va  2 s.c o  m
        }
        return webMap;
    }
}

Related

  1. createMap(U... items)
  2. createMap_pollutantHourly()
  3. createMapFor(String... args)
  4. createMapFromArgs(Object... args)
  5. createMapFromProperties(Properties stringSubstitutionVariables)
  6. map(final Entry... entries)
  7. map(final Object... keysAndValues)
  8. map(final Properties props)
  9. map(int initialCapacity)