Timer and TimerTask in java
<p>I would like to use Java Timer and TimerTask to do a Job everyday evening at 5 O' clock.
Please help me to solve this problem.</p>

<p>Problem with below methods as I think...</p>

<pre><code>schedule(TimerTask task, Date time)
</code></pre>

<p>----Date can be specified for first day only not for forthcomingdays available.</p>

<pre><code>schedule(TimerTask task, Date firstTime, long period)
</code></pre>

<p>----initial starting time and after how long it is to be executed can be given,
here if I start initlally my scheduler at 4 O' Clock evening then how to mention the next execution time. If I set 1 hour delay it will call after every one hour.</p>

<pre><code>schedule(TimerTask task, long delay)
</code></pre>

<p>--This is not applicable which will do things based on start times.</p>

<pre><code>schedule(TimerTask task, long delay, long period)
</code></pre>

<p>--This is not applicable which will do things based on start times.</p>
