Symbols between Classes

Hello, I'm trying to use an implementation of the timer and timertask classes. According to the JavaDoc for both classes, my syntax appears to be correct, however I am having significant difficulty resolving this error.

Below is part of the class which is host to the recurring action

public CSVRecord(){

myTimerTask task =new myTimerTask();// points to myTimerTask, which points to CSVRecord method

Timer myTimer =new Timer();

myTimer.scheduleAtFixedRate(new myTimerTask(), 100, 10000);

}

And here is the timerTask class I put together

import java.util.Timer.*;

import java.util.TimerTask.*;

publicclass myTimerTaskextends TimerTask{

publicvoid run(){

CSVRecord record =new CSVRecord();

}

}

I don't think there are any issues there, it looks straight forward...but I thought I should include it in this post just to be safe...

My issues is on the line myTimer.scheduleAtFixedRate(new myTimerTask(), 100, 10000); NetBeans gives me an error flag stating cannot find symbol, where the symbol is method scheduleAtFixedRate(myTimerTask, int, int)...

I'm stumped because after all my syntax -appears- correct...any insight would be appreciated.

[1851 byte] By [CallMeRexa] at [2007-11-27 7:34:04]
# 1
Look at the docs for it again at http://java.sun.com/j2se/1.4.2/docs/api/java/util/Timer.html
r035198xa at 2007-7-12 19:14:29 > top of Java-index,Java Essentials,Java Programming...
# 2

Your TimerTask's constructor creates a CVSRecord.

The CVSRecord's constructor creates and schedules a TimerTask.

Your TimerTask's constructor is then invoked, creating a CVSRecord.

This new CVSRecord's constructor then creates and schedules a TimerTask.

etc.

Am I alone in seeing a problem here?

paulcwa at 2007-7-12 19:14:29 > top of Java-index,Java Essentials,Java Programming...