Is it possible to use the list() method of the file class to create an array of only certain file types. For example, say I wanted to search a given directory for files ending in .ser. Or would I have to create the original array using the list command then create a new array searching for the correct file types?
I found an example for filter filename and modified it to fit my application. Obviously I missed something, probably something silly. I am getting a null pointer exception. This is what I am trying to use: