Create the method public static void RemoveLast(List
Code
Liststring> strings = new Liststring>();Code
strings.Add("First");Code
strings.Add("Second");Code
strings.Add("Third");Code
// Remember, this is how you print all the items in a listCode
strings.ForEach(Console.WriteLine);Code
RemoveLast(strings);Code
RemoveLast(strings);Code
strings.ForEach(Console.WriteLine);
Pankajkumar PatelRank #181 · 13.4K reputationPosted Feb 20, 2020, 6:41 PM EST
Joginder BangerRank #360 · 7K reputationPosted Feb 21, 2020, 3:16 PM EST
Avnish KumarRank #1,003 · 2K reputationPosted Feb 21, 2020, 5:14 PM EST
Jignesh KumarRank #91 · 22.9K reputationPosted Feb 22, 2020, 4:40 AM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Feb 22, 2020, 10:33 PM EST