|
I had trouble getting filename filter to work, after some reading I decided it was actually and interface. At that time I had just gained the ablility to write an interface, what one does is write a class declaring it implements the interface - then code the methods declared in the interface.
At that point, it is accept(String filename) or some version of that: I would have to look at the docs. In that class, the method would look for htm or html. The String class has a search method, it returns minus one if the string does not contain what you are looking for. There is a way to have it look at the end of the string, but I would have to look it up for you.
It is better if you make several attempts, then ask me when you are stuck. I can now look stuff up efficiently and seem to do well getting people unstuck - sometimes on api's I never heard of.
|