Question: Create a method that takes a list of string values and queries, using LINQ, the strings that are longer than 5 characters and starts with
Create a method that takes a list of string values and queries, using LINQ, the strings that are longer than 5 characters and starts with letter "A" or letter "m". Then order the returned strings in an alphabetical order. Finally, the method should print the queried strings from the LINQ query to the console. Handle all corner cases and if there is any expected exception, handle it properly using exception handling technique. Avoid general exception handling
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
