X-Received: by 10.68.196.134 with SMTP id im6mr153534pbc.5.1361948660748; Tue, 26 Feb 2013 23:04:20 -0800 (PST) X-Received: by 10.50.5.244 with SMTP id v20mr106224igv.13.1361948660495; Tue, 26 Feb 2013 23:04:20 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!jn4no11624893pbb.1!news-out.google.com!ov8ni22330pbb.1!nntp.google.com!su1no12146035pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Tue, 26 Feb 2013 23:04:20 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=203.11.81.236; posting-account=rjG9lQkAAACg858StY_wJSm2JbVp19Xx NNTP-Posting-Host: 203.11.81.236 References: <515de149-3ee1-482d-a090-82ce264ed142@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4e2d049c-9a8b-420c-8dfd-293402e7bf95@googlegroups.com> Subject: Re: Enum in Eclipse Scrapbook From: Robert Mark Bram Injection-Date: Wed, 27 Feb 2013 07:04:20 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.java.programmer:22565 On Wednesday, 27 February 2013 17:25:07 UTC+11, markspace wrote: > On 2/26/2013 9:52 PM, Robert Mark Bram wrote: > > > class A { > > > enum Month {JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC} > > > } > > > A a = new A(); > > > > > > When I try to execute this I get: > > > > > > The member enum Month can only be defined inside a top-level class or interface > > > > What's the name of the file this is defined in? Is it A.java? What > > package is this defined in? > > > > Ditto for the other file you tried. It is an Eclipse Scrapbook page - a jpage file. There is no class as such. Rob :)