Map<String, Integer> map = new HashMap<String, Integer>();map.put("java", 20);map.put("C++", 45);
Set <Entry<String, Integer>> set = map.entrySet();
List<Entry<String, Integer>> list = new ArrayList<Entry<String, Integer>>(set);
HashMap<Integer, List<String>> map = new HashMap<>();List<String> list = new ArrayList<String>();list.add("Java");list.add("Primefaces");list.add("JSF");map.put(1,list);if(map != null){return new ArrayList<String>((Collection<? extends String>) map.values());}
// you can use thisList<Value> list = new ArrayList<Value>(map.values());
// or you may useList<Value> list = new ArrayList<Value>();for (Map.Entry<String, String> entry : map.entrySet()){list.add(entry.getValue());}