📜  java 返回元组 - Java 代码示例

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

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