1. Write code in the method linearSearch() in "SearchMethods"class which finds the element in an array using linear search approach and returns its index to the calling main method, otherwise it returns -1.
2. Write code in the method binarySearch() in "SearchMethods" class which finds the element in an array using binary search approach and returns its index to the calling main method, otherwise it returns -1.