Search:

Type: Posts; User: whyld4900

Search: Search took 0.35 seconds.

  1. Re: Help with Clock (advance and reverse day,hour,minute)

    The advance method works:

    public void advance(int m){
    // advance day_of_week, hours and minutes - 30 points

    minutes = minutes + m;

    if(minutes > 59){
    ...
  2. Re: Help with Clock (advance and reverse day,hour,minute)

    I'm much happier with this method for keeping track of the correct hours but I am still having issues keeping track of days. Any help out there? Kevin? Anyone! lol


    public void advance(int m){...
  3. Re: Help with Clock (advance and reverse day,hour,minute)

    I'm with you having it start at 0 but in his instructions he says that valid ranges for the days are 1 - 7. But I understand your point.

    If Thursday is 4 and I add 10 days I'm at 14 for the number...
  4. Re: Help with Clock (advance and reverse day,hour,minute)

    No, the code in my previous post doesn't work. I can't keep track of the days in any consistent fashion with that approach. My problem is I don't understand the best approach to keep track of time in...
  5. Re: Help with Clock (advance and reverse day,hour,minute)

    I can visualize a set of total minutes that I can divide by to find out how many days, hours, and minutes but... the way these methods are set up I am having a hard time getting total minutes....
  6. Help with Clock (advance and reverse day,hour,minute)

    FYI - This is my first post. This is an assignment for a JAVA I class. I cannot import anything or change the public class. My problem right now focusing on the ADVANCE method, I don't know how to...
Results 1 to 6 of 6