So, here is the issue. I made a Time class which allows me to create time objects. In my time class, I created a method called minutesUntil
. minutesUntil
tells me the difference in minutes between two times.
To call minutesUntil
, I used this line.
time1.minutesUntil(time2)
This is the code in minutesUntil
.
public int minutesUntil(Time other){
int otherTotalMinutes = other.getMinutes() + (other.getHours() * 60);
int thisTotalMinutes = ??.getMinutes() + (??.getHours() * 60);
return (otherTotalMinutes - thisTotalMinutes);
}
What do I use in place of the question marks on the third line to refer to the time1 object inside of the minutesUntil
method.