static void Main(string[] args) { int[] a = { 5, 2, 9 }; int[] b = { 1, 4, 5 }; GetMiddleClass FindMiddle = new GetMiddleClass(); FindMiddle.GetMiddle(a, b); Console.ReadLine(); }