Question: 1 . Write a Java program that allows the user to discover all the files that start with a particular keyword in the given location.

1. Write a Java program that allows the user to discover all the files that start with a particular keyword in the given location.
Inputs: File Name Keyword and Search Folder
Ex: "Payslip" and "D:/"
Output:
Payslip_Aug2024.pdf
Payslip_Sept2024.pdf
2. Write a Java program that allows the user to discover all the files with a particular extension in the given location.
Inputs: File Name Extension and Search Folder
Ex: ".XLSX" and "C:/"
Output:
Report1.xlsx
Claims.xlsx
3. Write a program that allows the user to discover all the files with a particular keyword in the given location.
Ex: "Performance"
Output:
All the files that contain performance in them should be listed
Hint: Create a unique method for every file format.
Ex: One method for XLSX files
Ex: One method for PDF files
Ex: One method for txt files
Ex: One method for JSON files

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!