using System;
public class Program
{
public static void Main()
/*Create an array of strings called names*/
string[] names;
/*This array has been created with no size and therefor cant be used as it is, an array
has to be given a size for it to be used, in this case names can now hold 3 strings*/
names = new string[3];
/*We can now add some data to the array, in this case the array can hold 3 strings*/
names[0] = "Jacob";
names[1] = "Hamiora";
names[2] = "Steven";
/*We can use a foreach loop to display all of the names*/
Console.WriteLine("***** String Array *****");
foreach(string x in names)
Console.WriteLine(x);
} }
}