posted 18 years ago
Suppose my arraylist contains objects
ob2, ob3,ob5 and ob1
I want to reverse the order of the objects in the ArrayList.
That is I want it to be
ob1, ob5, ob3 and ob2.
is there any function like(though I didn't find in Javadoc)
arrayListInstance.reverse();
I wish java run in my veins.