java timer
import java.util.Timer;
Timer timer = new Timer();
int millis = 1000; //n*1000 millisecond = n second --> n minutes = n*60*1000
timer.schedule(new TimerTask() {
@Override
public void run() {
//what to do
}
}, millis);
java timer
import java.util.Timer;
Timer timer = new Timer();
int millis = 1000; //n*1000 millisecond = n second --> n minutes = n*60*1000
timer.schedule(new TimerTask() {
@Override
public void run() {
//what to do
}
}, millis);
timer java
Thread.sleep(1000); //waits one second before going on with the programm
//time is in ms
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us