title: How to make a clock in Java?
body: <p>I am new to Stack Overflow and also new to Java. I am trying to make a clock in order to practice/reinforce my skills. Here is what my problem is: </p>
  
  <p>I have made a class, TimeComponents, in which I have my source code for actually making the clock work. I am trying to figure out how to actually display my clock in my main class, TimeViewer. (Hopefully I am phrasing this correctly). </p>
  
  <p>Here is the code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>public class TimeComponents {
   
   public int seconds;
   public int minutes;
   public int hours;
   
   public TimeComponents(int initialHour, int initialMinutes, int initialSeconds){
    initialSeconds = 0;
    initialMinutes = 0;
    initialHour = 0;
    
   }
   public void Tick(){
    seconds = seconds ++;
    if(seconds == 60){
     minutes ++;
     seconds = 0;
     if(minutes == 60){
      hours ++;
      minutes = 0;
     }
    }
   }
   
   
    
  }
    </code></pre>
  </div>
  </div>
  </p>
  
  <p>And here is the main class that I want to use to print my clock:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>public class TimeViewer {
  
   public static void main(String[] args) {
  
   }
  
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Any and all help is appreciated!</p>