延迟线程执行
Timer timer=new Timer();//实例化Timer类
timer.schedule(new TimerTask(){
public void run(){
buyed(true);
this.cancel();}},500);
2022-12-07 10:27:05
延迟线程执行
Timer timer=new Timer();//实例化Timer类
timer.schedule(new TimerTask(){
public void run(){
buyed(true);
this.cancel();}},500);