Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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");
}
 
PREVIOUS NEXT
Tagged: #java #return #pair
ADD COMMENT
Topic
Name
8+4 =