Joanne
It is probably better to declare the class "public" but not essential.Originally posted by Iain Emsley:
I don't have the book but wouldn't you need something like public class party rather than just class party at the beginning?
Originally posted by Campbell Ritchie:
I don't have that book, but I believe some of the earlier examples are incomplete and will compile but not run...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by blingo james:
Pasted your code, javac, and it worked for me (some warnings, but no errors)
,and .class file created.
Is what you've pasted in here exactly what you have on file?
Originally posted by Campbell Ritchie:
... Since the previous post is 6 weeks old, is the previous poster likely to be reading?

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
| With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |