Something like the following:
ref example:
void changeString(ref String str) { str = \"def\"; } void main() { String abc = \"abc\"; chan
Three solutions not officially, explicitly mentioned:
ArrayList doThings() { // } void doThings(ArrayList list) { // } Pair doThings() { // }
For Pair, I would recommend: https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/tuple/Pair.html