Note that there is also a listFiles() method that returns an array of File objects. I often find that this is much more useful since I typically need File objects to deal with the files rather than just Strings representing their names. Also, it saves the step of creating my own File object for each String.
For more information, you should check out the Java API docs. These are always helpful to figure out the methods in a given class. Of course you have to know where to look, so that's why you should practice navigating them.