Author | Message |
---|---|
knagrec2
Posts: 51
|
Posted 13:24 Apr 28, 2019 |
Hello, On Lab 10, it says that we do not need to return an array because arrays are reference types. However, whenever I try and use this fact, the array is not edited. I believe this is because Java is not pass-by-reference. If I return the array in my method, it works perfectly. Is it OK if we return the array instead of trying to use the fact that it is a reference type? Edit - I fixed it, it is working now
Last edited by knagrec2 at
13:28 Apr 28, 2019.
|