Hi Guys
I am just starting out on the
SCJP book, after getting a fairly solid grounding in
java, well at least syntactically, but just as I think I know something, another unobvious issue pops up.
As you can see from this code, the ; alone on its separate line, looks completely surplus to requirements. But removing it gives a compilation error. I often though for structures, typically have curly brackets, but when adding these in, the results again are different.
So, the mantra of this beginners forum is "no question to stupid", so can someone explain what is its purpose (I know it ensures only 1 value is printed from the enum), but is it part of the for, is it part of the for body? Hmmmmm