public static void Main()
Console.WriteLine("Arrays - a collection data type ");
Console.WriteLine("Types of Collections: List<DataType>, Array[], Dictionary<Key,Value>");
string[] cars = {"Ford", "Chevy","BMW", "Dodge", "Tesla"};
int[] grade = {95, 36, 89, 94, 100};
double num1 = 1.0, num2 = 45.6, num3 = 3.145;
double[] myDoubles = {num1,num2,num3};
Console.WriteLine("My car is: "+cars[2]);
Console.WriteLine("My first item inside myDoubles is: "+myDoubles[0]);
Console.WriteLine("Before changing index 0:" +cars[0]);
Console.WriteLine("after changing index 0:" +cars[0]);
Console.WriteLine("------------------------------------------");
for(int i = 0;i < cars.Length;i++)
Console.WriteLine(cars[i]+" = "+i+ ", ");
Console.WriteLine("Please choose the index that you want to change");
changeWhat = Convert.ToInt32(Console.ReadLine());
if(changeWhat < cars.Length)
Console.WriteLine("Please enter the car you want to replace " +cars[changeWhat]+" with: ");
cars[changeWhat] = Console.ReadLine();