// string[] cars = {"Volvo", "BMW", "Ford", "Mazda"};
// Console.WriteLine(cars[0]);
// cars[0] = "Opel";
// Now outputs Opel instead of Volvo
// Console.WriteLine(cars.Length);
// Outputs 4
// other stuff
// Create an array of four elements, and add values later
//string[] cars = new string[4];
// Create an array of four elements and add values right away
//string[] cars = new string[4] {"Volvo", "BMW", "Ford", "Mazda"};
// Create an array of four elements without specifying the size
//string[] cars = new string[] {"Volvo", "BMW", "Ford", "Mazda"};
// Create an array of four elements, omitting the new keyword, and without specifying the size
//string[] cars = {"Volvo", "BMW", "Ford", "Mazda"};
//// Declare an array
//string[] cars;
// Add values, using new
//cars = new string[] {"Volvo", "BMW", "Ford"};
// Add values without using new (this will cause an error)
//cars = {"Volvo", "BMW", "Ford"};
// for (int i = 0; i < cars.Length; i++)
//{
// Console.WriteLine(cars[i]);
//}
// wut
//foreach (type variableName in arrayName)
// code block to be executed
//foreach (string i in cars)
// Console.WriteLine(i);
//// Sort a string
//Array.Sort(cars);
// Sort an int
//int[] myNumbers = {5, 1, 8, 9};
//Array.Sort(myNumbers);
//foreach (int i in myNumbers)
//Console.WriteLine(i);
//using System;
//using System.Linq;
// namespace MyApplication
// class Program
// {
// static void Main(string[] args)
// Console.WriteLine(myNumbers.Max()); // returns the largest value
// Console.WriteLine(myNumbers.Min()); // returns the smallest value
// Console.WriteLine(myNumbers.Sum()); // returns the sum of elements