SyntaxFix
Write A Post
Hire A Developer
Questions
Simple for loop!
for (int start = 0, end = array.length - 1; start <= end; start++, end--) { int aux = array[start]; array[start]=array[end]; array[end]=aux; }