how to list out file name?

I have a problem to list out the file names in a folder, can i know how to do it?Lets say i want to list the file name of "java1.doc" from the folder "Project".
[181 byte] By [dwarf007] at [2007-9-30 3:49:38]
# 1
Read the File API. The listFiles(...) method will help you out.
camickr at 2007-6-29 15:08:20 > top of Java-index,Archived Forums,Socket Programming...