Question: Create this using Java Using the System class introduced in our lab session and the insertion sort program discussed in our lecture to report the
Create this using Java
Using the System class introduced in our lab session and the insertion sort program discussed in our lecture to report the elapsed time when we use insertion sort program to sort n integers, where n is an integral number input by the user of your program and each integer is between 0 and 99999 inclusive. The following is a sample run of your program.
Input a number (at least 1000):
3000
Insertion sort needs 20 milliseconds to sort 3000 integers.
Continue ? (Yes/No) Yes
Input a number (at least 1000):
20000
Insertion sort needs 611 milliseconds to sort 20000 integers.
Continue ? (Yes/No) No
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
