public void SearchingElementInformation(int[] array) { WorkWithConsoleClass workWithConsoleClass = new WorkWithConsoleClass(); int element = workWithConsoleClass.InputSearchingElement(); if (SearchingElement(element, array) == -1) { workWithConsoleClass.OutputArrayWithMessage(array, "There is no element = " + element + " in the array"); } else { workWithConsoleClass.OutputArrayWithMessage(array, "There is element = " + element + " in the array. " + "Its index is " + SearchingElement(element, array)); } }