java - How to rewrite ArrayList in opposite direction -


this question has answer here:

i have arraylist , need rewrite in opposite direction. how it?

list<posts> viewlist = new arraylist<posts>();  viewlist = viewlogic.getpostslist(username); 

you can use:

collections.reverse(viewlist); 

as documented oracle here.


Comments

Popular posts from this blog

c# - Farseer ContactListener is not working -

Automatically create pages in phpfox -

database - one php page with different contents and urls -