title: How to use TimeUnit in java
body: <p>I am trying to use TimeUnit in java but it just send me errors
  That’s how I wrote it</p>
  <pre><code>import java.util.concurrent.TimeUnit ;
  
  public class Anything { 
      public static void main( String[] args ) {
          System.out.println(&quot;hi&quot;);
          TimeUnit.SECONDS.sleep(6);
          System.out.println(&quot;hi&quot;);
      }
  }
  </code></pre>