|
What I was having trouble with was my own test program. I knew my program was okay because it was passing the professor's test.
What my problem was...was I was trying to test my methods like this...
s.setTime (2,3,4) return s;
s.getTime () return s;
getDays() return s;
My problem was that in getDays (getHours, getMinutes) I needed to actually do a calculation ( which I named totalDays), and return totalDays, not s. It was sending some value of s to the toString and messing up the return.
Now I can clearly see the problem, but I just couldn't figure it out. Anyway, I got it done and turned in for a 10% deduction for being late. Oh well!
Hey, keep in touch if you have any thing I can help you with, since you are just learning too. I generally have a pretty good handle on it but this one just lost me!
-L
|