Hi Ranchers, Please give some suggestion for the following problem.. Iam working on web project, ....there is an arraylist which is filled with some data from DB...and displayed in a jsp... My requirement is to reverse the order of elements....
Collections.reverse(List list) method is not working..
My apologies, my previous post came out shorter than I wanted.
What I was trying to say is that since reverse() should work but is not, this may be indicating a further problem. Find an alternate solution rather than using reverse() is, in my opinion, working on the wrong problem and may leave you open to errors elsewhere.
Are you able to share any of the code?
subject: Reverse the order of elements in a ArrayList