Question: SortSearchUtil is a class of java utility methods for sorting and searching arrays. -All methods are static and public. -The class and file must be
SortSearchUtil is a class of java utility methods for sorting and searching arrays.
-All methods are static and public.
-The class and file must be named SortSearchUtil
-Method names are shown below
Sorting Utility methods:
selectionSort()
o For integers o For doubles o For Strings o For Comparables o For Objects
insertionSort() o For integers o For doubles o For Strings o For Comparables o For Objects
Searching Utility methods:
linearSearch() o For integers o For doubles o For Strings o For Comparables o For Objects
binarySearch() o For integers o For doubles o For Strings o For Comparables
o For Objects
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
