Hi.
I want to override one of the constructors in ArrayList, namely the
constructor, but I want to perform some operations on the Collection before calling super. Is there anyway that I can do this?
What I'm trying to accomplish is an ArrayList of files that only have the "html" extension. Ideally I'd like to pass in an array of files and directories, and my HTMLArrayList will filter out everything that doesn't end with "html".
thoughts?
I want to override one of the constructors in ArrayList, namely the
Code:
public ArrayList(Collection c) {
}
constructor, but I want to perform some operations on the Collection before calling super. Is there anyway that I can do this?
What I'm trying to accomplish is an ArrayList of files that only have the "html" extension. Ideally I'd like to pass in an array of files and directories, and my HTMLArrayList will filter out everything that doesn't end with "html".
thoughts?