title: How do I say 5 seconds from now in Java?
body: <p>I am looking at the Date <a href="http://www.j2ee.me/javase/6/docs/api/java/util/Date.html" rel="noreferrer">documentation</a> and trying to figure out how I can express NOW + 5 seconds. Here's some pseudocode:</p>
  
  <pre><code>import java.util.Date
  public class Main {
  
      public static void main(String args[]) {
           Date now = new Date();
           now.setSeconds(now.getSeconds() + 5);
      }
  }
  </code></pre>