But instead of just saying: day.next(), try day = day.next() as in the following code. I also updated your next() method to not use ifs and loops, as Mr. Sabre suggested.
posted 7 years ago
First off, thanks for your answers! They're quite helpful. And, yes, I need the values to loop around.
Now, just so I understand it correctly, there is no way to make a self contained method that will change the value of a variable with an enum assigned to it (i.e. It will always be day = day.next(); and never just day.next();), correct?
If that's the case, then that's what I needed to know.