title: using method tickSeconds in Class Clock on Java
body: <p>I am making a Swing application for a clock.</p>
  
  <p>I was trying to find the current time, and ended up using <code>System.currentTimeMillis()</code>, but I am still curious as to how to fix this. I get a lot of errors similar to this, so I would like to know how to fix this.</p>
  
  <p>Doc: <a href="http://docs.oracle.com/javase/8/docs/api/java/time/Clock.html#system-java.time.ZoneId-" rel="nofollow">http://docs.oracle.com/javase/8/docs/api/java/time/Clock.html#system-java.time.ZoneId-</a></p>
  
  <p>First, I tried</p>
  
  <pre><code>Clock second;
  second = Clock.tickSeconds(Clock.getZone());
  </code></pre>
  
  <p>but I get an error <code>non-static method getZone() cannot be referenced from a static context</code></p>
  
  <p>So I tried</p>
  
  <pre><code>Clock second;
  second = Clock.tickSeconds(new Clock.getZone());
  </code></pre>
  
  <p>but I get this:</p>
  
  <pre><code>cannot find symbol
  symbol:   class getZone
  location: class Clock
  </code></pre>
  
  <p>So how can I edit the code to fix the error?</p>