Welcome to the JavaRanch, Preddy. I assure you every question on the JavaRanch is urgent. However, we are all volunteers here, answering questions in our spare time. Spend a little time with our FAQ, How To Ask Questions On JavaRanch. The better questions you ask, the better answers we can provide. I see that you've also posted your question here. If read to the bottom of the page linked there, you will find your answer in the link "Listing the Files or Subdirectories in a Directory".