logo CodeStepByStep logo

AddStars

Language/Type: C# List collections
Related Links:

Write a method named AddStars that accepts as a parameter a List of strings, and modifies the list by placing a "*" element between elements, as well as at the start and end of the list. For example, if the list v contains {"the", "quick", "brown", "fox"}, the call of addStars(v); should modify it to store {"*", "the", "*", "quick", "*", "brown", "*", "fox", "*"}.

Method: Write a C# method as described, not a complete program or class.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.