SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to reverse the array in-place:
Collections.reverse(Arrays.asList(array));
It works since Arrays.asList returns a write-through proxy to the original array.