Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions

Question

2 What are the implications for logistics strategy?

Answered: 1 week ago