📜  java 返回对 - Java 代码示例

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

代码示例1
public Map.Entry getSomePair(){
    return Map.entry<>("Hello","World");
}
public Map.Entry getSomePairJava8(){
      return new AbstractMap.SimpleEntry<>("Hello","World");
}