Monday, January 16, 2012

How do I reverse an ArrayList in java?

I have to write a method that takes a single ArrayList of strings as a parameter and returns a new ArrayList of strings that contains the same elements as the original but in reverse order. The original ArrayList should be unchanged. I know what ArrayLists are but how would I go about doing this?

0 comments:

Post a Comment