I have an arraylist filled with objects of a class. These objects have variables like x,y and a imagePath. I only want to shuffle the imagepath variables in this arraylist between the objects. So x- and y variables of the objects should stay the same. How can I do this?
I know I can use collections.shuffle() to shuffle the entire arraylist. But this doesn't solve my problem.