How to find the number of files in a folder?

I want to know how to get the number of files stored in a folder.Also how to get the list of names of those files.Thanks in advance
[152 byte] By [JaswalManisha] at [2007-10-3 10:11:08]
# 1
java.io.File methods list() and listFiles() .
sabre150a at 2007-7-15 5:31:09 > top of Java-index,Core,Core APIs...