Answers for "java return tuple"

0

java return tuple

public Map.Entry<String,String> getSomeTuple(){
	return Map.entry<>("Hello","World");
}
public Map.Entry<String,String> getSomeTupleJava8(){
  	return new AbstractMap.SimpleEntry<>("Hello","World");
}
Posted by: Guest on April-16-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language