Making a delay without try/catch, or having it in one function
<p>I want to make my simple applet as least cluttered as possible. Currently all my delays are like</p>

<pre><code>try
{
    TimeUnit.SECONDS.sleep(1);
}
catch(InterruptedException e)
{
}
</code></pre>

<p>but its really cluttered. I want to have some sort of function, such as</p>

<pre><code>try
{
    TimeUnit.SECONDS.sleep(Delay);
}
catch(InterruptedException e)
{
}
</code></pre>

<p>then have it get called like this somehow</p>

<pre><code>delay(3)
</code></pre>

<p>Or, just get rid of the <code>try/catch</code> statement in general. Is that possible?</p>