Search for Text Files in Directory | Challenge

# Introduction In this challenge, we will use the File class and FilenameFilter to search for text files in a specified directory and print their filenames. The program will prompt the user to enter a directory path, check if the directory exists, and if so, filter out the text files and display their filenames. If the directory does not exist, an error message will be displayed.

|60 : 00

Click the virtual machine below to start practicing