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.
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:
PayslipAugpdf
PayslipSeptpdf
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:
Reportxlsx
Claims.xlsx
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
