Blane
How do I add strings to a list?
So what I basically want to do is something along the lines of:
Title.Add(Console.ReadLine());
I want to save string values and then display them in the program if the user chooses to option. My problem lies in that I have no idea on how this works. I've looked at the MSDN and YouTube videos but I just can't seem to grasp it.
Also, I've built up a menu using switch and cases.
The biggest problem of them all is that I have yet to find a good explanation on the difference between
List<string[]> Title = new List<string[]>();
and
List<string> Title = new List<string>();
Since this is assignment, I don't want the answer, I just want to understand how to actually use them and the difference...
137 replies