[ad_1]
If you want to hold on to the original position of the object you need to make a copy of the arraylist before you shuffle it. And then use indexOf
[ad_2]
solved Arraylist element index before and after Collections.shuffle in java
[ad_1]
If you want to hold on to the original position of the object you need to make a copy of the arraylist before you shuffle it. And then use indexOf
[ad_2]
solved Arraylist element index before and after Collections.shuffle in java