posted 7 years ago
I don't like your making both methods static. Yes, you have to start off in a static method (main) but you should get out of a static context as soon as possible. Since you are not creating any objects, that isn't an object‑oriented approach.
In the case of listing files, you can argue that you you won't notice the difference between the results from an object‑oriented (=OO) solution and a procedural solution, but you should probably get into the habit of writing OO as soon as possible.