Java: How to find the newest file in a directory. Link to code:
LInk to course code:
This video shows me listing the files of directory and using BasicFileAttributes to find FileTime and then using that to get a timestamp. I think find the newest timestamp by iterating and comparing the timestamps to placeholder value. Finally, I cast this timestamp back into a date and print out the date.
Tags: Java: How to find the newest file in a directory, java, fileTime, unix timestamp, java compare file time, computer programming, java BasicFileAttributes