Trouble with Java Clock
<p>I am doing a java clock for class and I am having some trouble with the tickDown() and addClock(Clock cl) parts of my program. I also need a Tester class but I would like to have this compile first. Any other help would be great.</p>

<p>Here is what I have so far...</p>

<pre><code>public class Clock {

private static final HOUR_TO_SECONDS = 3600;
private static final MINUTE_TO_HOURS = 60;
private static final DAY_TO_HOURS = 24;

private int hours;
private int minutes;
private int seconds;

public Clock ()
{
    hours = 0;
    minute = 0;
    seconds = 0;
}

public Clock (int hours, int minutes, int seconds)
{
    this.hours = hours;
    this. minutes = minutes;
    this.seconds = seconds;
}

public Clock (int totalSeconds)
{
    hours = (totalSeconds / 3600) % 24;
    minutes = (totalSeconds % 3600) / 60;
    seconds = totalSeconds % 60;
}

public int getHours ()
{
    return hours;
}

public int getMinutes ()
{
    return minutes;
}

public int getSeconds ()
{
    retuen seconds;
}

public void setHours (int hours)
{
    this.hours = hours;
}

public void setMinutes (int minutes)
{
    this.minutes = minutes;
}

public void setSeconds (int seconds)
{
    this.seconds = seconds;
}

public void tick ()
{
    int totalSeconds;
    totalSeconds = hours * HOURS_TO_SECONDS + minutes * MINUTES_TO_SECONDS + seconds;
    totalSeconds ++;
    hours --;
    minutes --;
    seconds --;
}

public void tickDown ()
{

}

public clone addClock (Clock cl)
{
    Clock clock;
    int totalSeconds;
    totalSeconds = this.hours * HOURS_TO_SECONDS + this.minutes * MINUTE_TO_SECONDS + 
        this.seconds + cl.getHours() * HOURS_TO_SECONDS + cl.getMinutes() * MINUTES_TO_SECONDS +
        cl.getSeconds ();
    Clock = new clock (totalSeconds);
    return clock;
}

public string toString ()
{
    str = "The time is: " + hours + ":" + minutes + ":" + seconds;
    return str;
}
</code></pre>
