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

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -