how to move an object from a arraylist in java code example Example: java list change element position Collections.swap(List<?> list, int i, int j)