sleep after program run
<p>I want my system to put on the sleep or hibernate mode just after the timer expires. </p>

<pre><code>some codes here{
//APPLICATION CODE
}

//SLEEP OR HIBERNATE CODE
</code></pre>

<p>Can anybody help me to get the sleep or hibernate code for java netbeans???</p>
