how to return multiple values of basic data type?# Java - 爪哇娇娃
b*d
1 楼
for example, I have a function as follows:
void f(int[][] a, int[] b){
a = ...
b = ...
}
However, when it returns, a and b are not changed.
Is there any way to change multiple values without
using objects?
Thanks.
void f(int[][] a, int[] b){
a = ...
b = ...
}
However, when it returns, a and b are not changed.
Is there any way to change multiple values without
using objects?
Thanks.