#Did TimerTask got updated ?
17 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @half pumice! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
breaking changes don't happen like that
are you importing it from the wrong package or somethign
import java.util.TimerTask;
show your actual issues, this description doesn't really give much info
Timer timer = new Timer(); Expected 2 arguments but found 0
timer.schedule(); Cannot resolve method 'schedule' in 'Timer'
Timer is a a class in TimerTask its threading
And what I learned in uni is that it doesn't take arguments and has a schedule method to tell it the time and function to run
declare your timer like this:
java.util.Timer timer = new java.util.Timer();
You are probably importing the swing timer
oh yes that's it
also you could import java.util.Timer instead