How To Use Arrays?

Hi guys,
So I have decided to start learning about “Arrays” as It will come in use in my further game creation.

So my question is… What good tutorials are there that will teach me how to use arrays?
It will REALLY help me out!

Thank you,
~Izzy

See this website http://www.dotnetperls.com/string-array it will teach you all about arrays. Than you can use your imagination on how you could use other objects that aren’t strings as shown in the example.
But as Fattie said. Lists are very valuable to you. You could use this to learn about lists C# List Examples - Dot Net Perls Anyway I hope this helps you along your way :slight_smile:

using System.Collections.Generic;

static void Main()
{
List list = new List();
list.Add(2);
list.Add(3);
list.Add(7);

foreach (int prime in list) // Loop through List with foreach
{
    Console.WriteLine(prime);
}

for (int i = 0; i < list.Count; i++) // Loop through List with for
{
    Console.WriteLine(list*);*
  • }*
    }