public class Sort { public static void main(String[] args) { int[] data = {49,38,65,97,76,13,27,49}; int[] res = data; final int N = data.length; bubbleSort(data,N); printData(data,N); directInsertSort(data,N); printData(data,N); binaryInsertSort(dat…