コード スニペットは次のとおりです。
Timer t = new Timer();
TimerTask task = new TimerTask() {
@Override
public void run() {
//change the timer rate of scheduleAtFixedRate here
}
};
//every 10 sec
t.scheduleAtFixedRate(task, new Date(), 10000);
タイマーのレートをインスタンスからt.scheduleAtFixedRate(task, new Date(), 30000)
メソッド内に変更する方法を教えてもらえますか?run
TimerTask
どうもありがとう!