Answer the question
In order to leave comments, you need to log in
How to output a string from an array with the required character using LINQ?
Good afternoon!
There is an array of strings stingName with names. It is necessary to use LINQ methods to display strings that contain a character (for example, the character "a"). How to do it?
Answer the question
In order to leave comments, you need to log in
stingName.Where(s => s.Contains("a")).ToList().ForEach(s => Console.WriteLine(s));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question