[Solved] how do i return the array from method?
To answer your question “How to return the matrix”: you are already doing it the right way. As you can see from the comments so far, the problem lies in the declaration of A. A is declared and initialized inside the for-loop: int [][]A = new int [size_num][size_num]; Hence its visibility is limited to the … Read more