📅  最后修改于: 2022-03-11 14:52:42.351000             🧑  作者: Mango
Map.Entry pair=Map.entry("value1","value2");//since Java 9
//Map.Entry tuple=new AbstractMap.SimpleEntry("value1","value2");//until Java 8
String val1=tuple.getKey();
String val2=tuple.getValue();