Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Lydia Hughes   on May 07 In Java Category.

  
Question Answered By: Julia Hughes   on May 07


Well, list() will give you the array as you've shown. Add the elements of that
array to a List. Then, what I would do is create a Comparator that operates on
File objects. This comparator uses the date  to determine if one object is less
than another. Then use Collections.sort(List, Comparator). That's it.

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Getting folder contents - date wise sorted ? Or get search suggestion and latest updates.


Tagged: