Originally posted by Robert Hill:
By itself, the code you posted won't compile, of course.
But did you try to compile and run it?
why have 2 variables that store the same value(now and startValid)?
that's just a snippet from the whole code. everything compiles OK. I just wasn't sure if there was a certain way to initialize long values or add long values together that maybe I wasn't doing correctly, yet it was still able to compile.
as far as 2 variables storing the same value, those 2 lines were in the code given to me so i just didn't change them.
also, like i said, the code compiles and runs, but it's not doing what it should so i'm looking at it piece by piece to make sure i'm doing it all right.