Answers for "return type as pair in java"

0

java return pair

public Map.Entry<String,String> getSomePair(){
	return Map.entry<>("Hello","World");
}
public Map.Entry<String,String> getSomePairJava8(){
  	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