📜  用值初始化 hashmap - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:37.399000             🧑  作者: Mango

代码示例5
Map doubleBraceMap  = new HashMap() {{
    put("key1", "value1");
    put("key2", "value2");
}};