OK, I'm about to go crazy! I wrote a class that compares ClockTime - I set the class up using arrays. I want to compare two ClockTime objects and
test for equality. My instance variable looks like:
private int[] myTime = new int[3];
My default constructor looks like:
public ClockTime()
myTime[0] = 0;
myTime[1] = 0;
myTime[2] = 0;
And my second constructor looks like:
public ClockTime(int hours, int minutes, int seconds)
myTime[0] = hours;
myTime[1] = minutes;
myTime[2] = seconds;
Say a user creates 2 ClockTime objects using either constructor, it doesn't matter which one. After the user creates these two objects, my equals() method needs to compare the two objects for equality - in other words, are they the same time or not.
I don't know if I'm having a brain fart or what, but I CAN'T FIGURE OUT HOW I'M SUPPOSED TO DO THIS. My assignment is due at 8:00 p.m. CST - will someone please help?!?!?!
THANKS!