I saw that javascript has something similar.
Is it possible to do something like this in Android?
I know how to do it with array names, my question is about returning and assigning directly from the variables that compose the arrays.
private int[] calcHead() {
int i;
int j;
int k;
// Do stuff
return {i, j, k}; <-- is this possible? (I am getting error: "The Method must return a result of type int[]")
}
private void otherFunc(){
int a;
int b;
int c;
{a, b, c} = calcHead(); <-- is this possible?
}