Could anyone please explain how to use Arraylists? And is this really the only way to store info dynamically? if so I think I'll miss malloc. The reason I need to allocate memory dynamically is I'm trying to make a program which asks the user for any number of integers. At first they are stored in a string using "string input = Console.Readline()", after that I use a for-loop to detect the actual integers and try sorting out other letters and spaces that the user could have entered by mistake. This is the point where I need to store the integers dynamically while converting them from the string. And I know about the split() method but I think it's good to practice myself.
I would really appreciate all suggestions and help I can get!