AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter03/Listing03.20.DeclaringAndAccessingAnArray.cs
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter03.Listing03_20
{
    public class Program
    {
        public static void Main()
        {
            string[] languages = new string[] {
                "C#", "COBOL", "Java",
                "C++", "TypeScript", "Visual Basic",
                "Python", "Lisp", "JavaScript"};
                // Retrieve fifth item in languages array (TypeScript)
                string language = languages[4];
                // Write �TypeScript�
                System.Console.WriteLine(language);
                // Retrieve second item from the end (Python)
                language = languages[^3];
                // Write �Python�
                System.Console.WriteLine(language);
        }
    }
}
