📅  最后修改于: 2022-03-11 14:52:34.558000             🧑  作者: Mango
Map map = new HashMap<>();
map.put("a", 1);
map.put("b", 2);
System.out.println(Arrays.asList(map)); // method 1
System.out.println(Collections.singletonList(map)); // method 2