SyntaxFix
Write A Post
Hire A Developer
Questions
If you don't want to use Collections then you can do this:
Collections
for (i = 0; i < array.length / 2; i++) { int temp = array[i]; array[i] = array[array.length - 1 - i]; array[array.length - 1 - i] = temp; }