Question: Create a method that takes a two-dimensional array of files names as strings and search for a specific file extension. Then, it returns a list

Create a method that takes a two-dimensional array of files names as strings and search for a specific file extension. Then, it returns a list of the files with the given extension and prints the name of the files.

Handle all corner cases and if there is any expected exception, handle it properly using exception handling technique. Avoid general exception handling.

For example: for the array

A = [first.doc, second.doc, exam.pdf,

resume.pdf, code.csharp, employee.java

]

FileExtension(A, doc) returns a list that contains first.doc and second.doc and prints the names to the console. C# - a programming language

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 Databases Questions!