java waiting for 3 second to run the code
Timer timer = new Timer(); timer.schedule(new TimerTask() { @Override public void run() { } },3000);