title: Time interval in Java
body: <p>how to call a method after a time interval?
  e.g if want to print a statement on screen after 2 second, what is its procedure?</p>
  
  <pre><code>System.out.println("Printing statement after every 2 seconds");
  </code></pre>