call method after delay in java code example
Example: delay a function call in java
new java.util.Timer().schedule(
new java.util.TimerTask() {
public void run() {
// your code here
}
},
5000
);