Is there any way of swapping 2 entries in an ArrayList without taking one out into a holder, moving the second and then putting the holder item back in?
i.e. I want to do ArrayList.swap(i,j).
At the end the objects in slot i and j would be in slot j and i resectively.
Users browsing this forum: No registered users and 10 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum