This content has been marked as final. Show 3 replies
starting with sample code?
It is your job to write the code not ours. When you have done that and have encountered a problem then come back and ask a specific question including all the relevant information.
As far as I know there isn't anyway to determine the creation date of a File in core Java. There maybe a third party lib that can do it.
We do not make homework.
BTW, you may need the following API's for your project :
- [*File*|http://java.sun.com/javase/6/docs/api/java/io/File.html] to parse the directory,
- [*TreeSet*|http://java.sun.com/javase/6/docs/api/java/util/TreeSet.html] to sort your items
- [*Logger*|http://java.sun.com/javase/6/docs/api/java/util/logging/Logger.html] to build your Email.log file.