Search:

Type: Posts; User: Rauda

Search: Search took 0.09 seconds.

  1. Replies
    16
    Views
    917

    Re: [ Build An Alarm ]

    create a main class to test your clock
  2. Replies
    16
    Views
    917

    Re: [ Build An Alarm ]

    yeah i want the whole code
  3. Replies
    16
    Views
    917

    Re: [ Build An Alarm ]

    yeah
    i need to do them in package I guess and class something like that
    a classTester for the main class clock
    the question explains it all
  4. Replies
    16
    Views
    917

    Re: [ Build An Alarm ]

    public class Clock {

    private int hr;
    private int min;
    private int sec;

    public int getHour() {
    return hr;
    }
  5. Replies
    16
    Views
    917

    Re: [ Build An Alarm ]

    i didn't understand
    do it for me:(
  6. Replies
    16
    Views
    917

    Re: [ Build An Alarm ]

    ok so, that's what I've done so far..
    you got the idea right?




    public class Clock {
    private int hr;
    private int min;
    private int sec;
  7. Replies
    16
    Views
    917

    Re: [ Build An Alarm ]

    Thank you for the reply :D
    I didn't start the program yet
    didn't know how to start :-??
  8. Replies
    16
    Views
    917

    [ Build An Alarm ]

    Implement a Clock class that has a tick method tick() and variables: hr, min, and sec. Build a test class that has:

    C1_int as an initial time (e.g., 10:30:00)  Clock c1_int = new Clock();...
Results 1 to 8 of 8