Answer:
Calculating the Elapsed Running time of algorithm , we put System.currentTimeMillis() at the start of main method and at the end of main Method and calculate the difference.
long end = System.currentTmeMillies();
------Program -------
long end = System.currentTmeMillies();
long elapsedTime = end-start
Step-by-step explanation: