The advance method works:
public void advance(int m){
// advance day_of_week, hours and minutes - 30 points
minutes = minutes + m;
if(minutes > 59){
...
Type: Posts; User: whyld4900
The advance method works:
public void advance(int m){
// advance day_of_week, hours and minutes - 30 points
minutes = minutes + m;
if(minutes > 59){
...
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){...
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...
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...
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....
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...