for (int i = 1; i < list.length; i++){
list[i-1] = list[list.length-i]; }
As you can see, when my list reaches middle it has already new stored digits and uses the new ones. So by typing 1,2,3,4,5, come ous 5,4,3,4,5... so how would you swap elements in an array without creating a new array?