1
我不明白什麼是錯在此代碼:無法執行我的定時器
import java.util.*;
public class Timer {
public static void main(String[] args) {
Timer timer = new Timer();
timer.schedule(new Run(), 0, 5000);
}
}
這是我第一次在Java中使用定時器和它說
error: cannot find symbol timer.schedule(new Run(), 0, 5000); ^ symbol: method schedule(new Run(), int, int) location: variable timer of type Timer
我錯過了什麼?
我的壞,我沒有看到......非常感謝你 – dulindraxe