📅  最后修改于: 2022-03-11 14:52:45.343000             🧑  作者: Mango
new Timer().schedule(new TimerTask() {
@Override
public void run() {
// this code will be executed after 2 seconds
}
}, 2000);