Exactly as any other reference-type object:
return myArray;
.
You are not ready to give
answers on Sudoku programming, as well as any other (
What's wrong with this Sudoku code?[
^]).
I should also add that you won't be able to learn programming by asking such question. Rather, you need to take a manual and learn from the very beginning, doing simple exercises as you go. When you are done and feel some confidence, please come back, we will gladly help you. But do yourself a big favor: not earlier.
—SA