# Why do I need an array in a method, and what should I do if I don't throw an exception when entering data into the array?

``using System;namespace ConsoleApp1{    class Program    {        static void Main(string[] args)        {                                    void Func(int[] numbers,int L, int R)            {                int  middle, I, J, F, Z;                                I = L; J = R;                middle = (L + R) / 2;                do                {                    do                    {                        F = 0;                        if (numbers[I] < numbers[middle]) F = -1;                        if (numbers[I] > numbers[middle]) F = 1;                        if (F > 0) I = I + 1;                        Console.WriteLine(I);                    }                    while                    (F < 0);                    do                    {                        F = 0;                        if (numbers[J] < numbers[middle]) F = -1;                        if (numbers[J] > numbers[middle]) F = 1;                        if (F > 0) J = J + 1;                        Console.WriteLine(J);                    }                    while                    (F < 0);                    if  (I <= J)                    {                         Z = numbers[I]; numbers[I] = numbers[J]; numbers[J] = Z;                    }                }                while                (I <= J);                if (L < J) Func(numbers, L, J);                 else if (I < R) Func(numbers, I, R);            }            Func(numbers,15, 10);        }    }}``