#Did TimerTask got updated ?

17 messages · Page 1 of 1 (latest)

half pumice
#

timer = new Timer() expected 2 args???
timer.schedule() can't resolve ???
What's going on ? Did something change ?

fickle graniteBOT
#

This post has been reserved for your question.

Hey @half pumice! Please use /close or the Close Post button 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.

cyan wolf
#

breaking changes don't happen like that

#

are you importing it from the wrong package or somethign

half pumice
#

import java.util.TimerTask;

cyan wolf
#

show your actual issues, this description doesn't really give much info

half pumice
#

Timer timer = new Timer(); Expected 2 arguments but found 0

#

timer.schedule(); Cannot resolve method 'schedule' in 'Timer'

cyan wolf
#

and how did you define Timer

#

did you import it or what exactly

half pumice
#

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

mystic lance
#

You are probably importing the swing timer

half pumice
#

oh yes that's it

cyan wolf
#

also you could import java.util.Timer instead