sort variant and parallel sort added
This commit is contained in:
parent
2aa36360f8
commit
94f08d43af
@ -84,5 +84,20 @@ public class ArraySort {
|
|||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void arraySortVariant() {
|
||||||
|
System.out.println(Arrays.toString(numbers));
|
||||||
|
Arrays.sort(numbers, 3, 7);
|
||||||
|
System.out.println(Arrays.toString(numbers));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void arrayParallelSortVariant() {
|
||||||
|
|
||||||
|
Arrays.parallelSort(numbers);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user