For example i have a directory contains the below files:
- test.log
 - test.html
 - test.txt
 
I would like to know how I can make my java program pick and read only the files with .log extension.
Because the name of the file is always changing and I want to trace and read the files that have .log extension.
Any idea ?