Results 1 to 4 of 4
- 05-06-2011, 03:52 AM #1
Member
- Join Date
- Apr 2011
- Posts
- 52
- Rep Power
- 0
-
You might wish to respond to the good folks who helped you in the previous thread. :)
Last edited by Fubarable; 05-06-2011 at 04:12 AM.
-
Sorry, I wasn't clear. Just a simple thanks for replying was what I meant, something to acknowledge that you read their post and appreciate the time they took to consider your problem and try to help you.
Any way regarding your problem, TimerTask will need to be extended to be used, and often this is done as an anonymous inner class. Its run method's signature cannot be changed, and so this method will never return anything, but that's OK, since you'll never call it directly and so you really don't want it to return anything. Rather, you'll likely have it changing the state of either fields it holds, or more likely (if it is being used as an anonymous inner class) of fields held by the containing class.
- 05-06-2011, 06:35 AM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
When people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
TimerTask for each value of array
By lexikovs in forum New To JavaReplies: 5Last Post: 04-02-2011, 09:16 PM -
thread + timertask
By anra in forum Threads and SynchronizationReplies: 0Last Post: 03-08-2011, 10:05 AM -
hibernate session = null in the run() method of TimerTask
By fabs in forum Threads and SynchronizationReplies: 1Last Post: 09-17-2009, 03:12 PM -
Timer and TimerTask
By AndrewM16921 in forum New To JavaReplies: 2Last Post: 04-07-2009, 11:40 PM -
TimerTask with a Date_Time
By kunta in forum Sun Java Wireless ToolkitReplies: 1Last Post: 05-31-2007, 10:17 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks