Scheduling a method to execute recursively and terminate that method
<p>I have a method which will be called repeatedly after successive intervals.
I have used <code>public void schedule(TimerTask task, Date firstTime, long period)</code>.
How to stop this schedule method being called after certain time.</p>

<p>Right now i have no idea how to stop this method.</p>

<p>Any help would be greatly appreciated.</p>
