import java.util.Map;
import java.util.Set;
import java.util.List;
import java.util.HashMap;
import java.util.ArrayList;
public class MyClass
{
public static void main(String[] args)
{
Map<String, String> map = new HashMap<>();
map.put("Red", "#FF0000");
map.put("Green", "#00FF00");
map.put("Blue", "#0000FF");
map.put("Yellow", "#FFFF00");
Set<Map.Entry<String, String>> set = map.entrySet();
List<Map.Entry<String, String>> list = new ArrayList<>(set);
System.out.println(list);
}
}
/*
run:
[Red=#FF0000, Blue=#0000FF, Yellow=#FFFF00, Green=#00FF00]
*/