I'm trying to return a 2d array from call(), I'm having some issues. My code so far is:
//this is the end of main
Thread t1 = new Thread(new ArrayMultiplication(Array1, Array2, length));
t1.start();
}
public int[][] call(int[][] answer)
{
int[][] answer = new int[length][length];
answer = multiplyArray(Array1, Array2, length); //off to another function which returns the answer to here
return answer;
}
This code compiles, this is not returning my array. I'm sure I'm probably using the wrong syntax, but I can't find any good examples.
EDIT: changed it a bit