×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Himesh Sharma
Added: Mar 27, 2021 10:32 AM
Views: 4417
  1. new java.util.Timer().schedule(
  2.         new java.util.TimerTask() {
  3.             @Override
  4.             public void run() {
  5.                 // your code here
  6.             }
  7.         },
  8.         5000
  9. );