How to swap ArrayList<> in java?

0 votes
44 views
asked Dec 18, 2014 in JAVA by lyon
Hi

 How to swap ArrayList<> in java?

1 Answer

0 votes
answered Dec 18, 2014 by admin (8,115 points)
edited Dec 18, 2014 by admin

Hi Lyon

import java.util.Collections;

 Collections.swap(ArrayList, 0,1);

...