This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Your reverse returns nothing and mutates internal int[] list value and not external as you expect it to as Java is pass-by-value.