Wait function in Java
<p>So I am writing a Java code to represent a heap sort and to represent the operation I need to have a waiting function which will wait between different operation but I am not sure if there is a function in Java that does that or do I need to write the function by myself and how would i do that.</p>

<p>Representing heap sport is a homework but writing the waiting function isn't so I appreciate your help</p>
