getExtension()
This method returns a list of extensions that were found in the list of files.