In general on JavaRanch, it's acceptable to post code snippets from a book or a mock exam for the purposes of discussion. What the authors of the material like to see is an acknowledgment of the source of the code snippet. So you might say: "This is from Whiz-labs...."
p.s. BTW, I'm not being obtuse here (wow - I've used "obtuse" twice in the same morning ), Kathy and I have a personal policy that we like ranchers to hash out technical questions before we do; it gives everyone additional "learning opportunities"
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
hello i think you have some confusion,i have checked from book.when author says that code block must end with semicolon he is talking about code block that defines body of constant,not body of enum.and in question no 8,line 5 ,there should be no semicolon as body of enum is ending there
subject: Doubt in K&B SCJP 5: topic enum declaration